Condition Coverage

blib/lib/Suricata/Monitoring.pm
Criterion Covered Total %
condition 0 48 0.0


and 3 conditions

line !l l&&!r l&&r condition
140 0 0 0 $args{'mode'} ne "librenms" and $args{'mode'} ne "nagios"
0 0 0 defined $args{'mode'} and ($args{'mode'} ne "librenms" and $args{'mode'} ne "nagios")
153 0 0 0 defined $args{'files'} && defined keys %{$args{'files'};}
255 0 0 0 $process_it and defined $line
263 0 0 0 not defined $current_till and defined $timestamp
0 0 0 not defined $current_till and defined $timestamp and $timestamp =~ /^[0-9]+\-[0-9]+\-[0-9]+T[0-9]+\:[0-9]+\:[0-9\.]+[\-\+][0-9]+/
298 0 0 0 defined $json->{'event_type'} and $json->{'event_type'} eq "stats"
383 0 0 0 defined $previous and defined $previous->{'data'}{$instance}
0 0 0 defined $previous and defined $previous->{'data'}{$instance} and defined $previous->{'data'}{$instance}{'packets'}
0 0 0 defined $previous and defined $previous->{'data'}{$instance} and defined $previous->{'data'}{$instance}{'packets'} and defined $previous->{'data'}{$instance}{'bytes'}
0 0 0 defined $previous and defined $previous->{'data'}{$instance} and defined $previous->{'data'}{$instance}{'packets'} and defined $previous->{'data'}{$instance}{'bytes'} and defined $previous->{'data'}{$instance}{'dropped'}
444 0 0 0 $new_stats->{'drop_percent'} >= $self->{'drop_percent_warn'} and $new_stats->{'drop_percent'} < $self->{'drop_percent_crit'}
464 0 0 0 $new_stats->{'ifdrop_percent'} >= $self->{'drop_percent_warn'} and $new_stats->{'ifdrop_percent'} < $self->{'drop_percent_crit'}
484 0 0 0 $new_stats->{'error_delta'} >= $self->{'error_delta_warn'} and $new_stats->{'error_delta'} < $self->{'error_delta_crit'}
504 0 0 0 $new_stats->{'error_percent'} >= $self->{'error_percent_warn'} and $new_stats->{'error_percent'} < $self->{'error_percent_crit'}
557 0 0 0 defined $to_return->{'data'}{'.total'}{'packet_delta'} and $to_return->{'data'}{'.total'}{'packet_delta'} != 0