You can make transformation script like this for your packet loss DCI:
"abort" keyword will cancel collection of datapoint. You can also use "return null" instead of "abort" - this will put the DCI into data collection error.
Code Select
if ($node->state & NodeState::Unreachable) abort;
return $1;"abort" keyword will cancel collection of datapoint. You can also use "return null" instead of "abort" - this will put the DCI into data collection error.