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
136 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")
149 0 0 0 defined $args{'files'} && defined keys %{$args{'files'};}
251 0 0 0 $process_it and defined $line
259 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]+/
294 0 0 0 defined $json->{'event_type'} and $json->{'event_type'} eq "stats"
379 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'}
440 0 0 0 $new_stats->{'drop_percent'} >= $self->{'drop_percent_warn'} and $new_stats->{'drop_percent'} < $self->{'drop_percent_crit'}
460 0 0 0 $new_stats->{'ifdrop_percent'} >= $self->{'drop_percent_warn'} and $new_stats->{'ifdrop_percent'} < $self->{'drop_percent_crit'}
480 0 0 0 $new_stats->{'error_delta'} >= $self->{'error_delta_warn'} and $new_stats->{'error_delta'} < $self->{'error_delta_crit'}
500 0 0 0 $new_stats->{'error_percent'} >= $self->{'error_percent_warn'} and $new_stats->{'error_percent'} < $self->{'error_percent_crit'}
553 0 0 0 defined $to_return->{'data'}{'.total'}{'packet_delta'} and $to_return->{'data'}{'.total'}{'packet_delta'} != 0