| line |
true |
false |
branch |
|
90
|
0 |
0 |
if (defined $_[1]) |
|
107
|
0 |
0 |
if (defined $args{$threshold}) |
|
109
|
0 |
0 |
unless ($args{$threshold} =~ /[0-9\.]+/) |
|
116
|
0 |
0 |
if (defined $args{'mode'} and ($args{'mode'} ne 'librenms' and $args{'mode'} ne 'nagios')) { } |
|
|
0 |
0 |
elsif (defined $args{'mode'}) { } |
|
129
|
0 |
0 |
if (not defined $args{'files'} && defined keys %{$args{'files'};}) { } |
|
138
|
0 |
0 |
if (defined $self->{'files'}{'.total'}) |
|
185
|
0 |
0 |
unless $bw = "File::ReadBackwards"->new($self->{'files'}{$instance}) |
|
187
|
0 |
0 |
if ($@) |
|
189
|
0 |
0 |
if ($to_return->{'errorString'} ne "") |
|
198
|
0 |
0 |
if ($process_it) |
|
209
|
0 |
0 |
if (not defined $current_till and defined $timestamp and $timestamp =~ /^[0-9]+\-[0-9]+\-[0-9]+T[0-9]+\:[0-9]+\:[0-9\.]+[\-\+][0-9]+/) |
|
227
|
0 |
0 |
if ($timestamp =~ /\+/) { } |
|
238
|
0 |
0 |
if ($t->epoch <= $current_till) |
|
244
|
0 |
0 |
if (defined $json->{'event_type'} and $json->{'event_type'} eq "stats") |
|
272
|
0 |
0 |
if ($new_stats->{'total'} != 0) { } |
|
279
|
0 |
0 |
if ($new_stats->{'f_total'} != 0) { } |
|
289
|
0 |
0 |
if ($new_stats->{'drop_percent'} >= $self->{'drop_percent_warn'} and $new_stats->{'drop_percent'} < $self->{'drop_percent_crit'}) |
|
299
|
0 |
0 |
if ($new_stats->{'drop_percent'} >= $self->{'drop_percent_crit'}) |
|
309
|
0 |
0 |
if ($new_stats->{'f_drop_percent'} >= $self->{'drop_percent_warn'} and $new_stats->{'f_drop_percent'} < $self->{'drop_percent_crit'}) |
|
319
|
0 |
0 |
if ($new_stats->{'f_drop_percent'} >= $self->{'drop_percent_crit'}) |
|
331
|
0 |
0 |
if ($total_key ne "alertString" and $total_key ne "alert") |
|
332
|
0 |
0 |
if (not defined $to_return->{'data'}{'.total'}{$total_key}) { } |
|
354
|
0 |
0 |
if ($to_return->{'data'}{'.total'}{'total'} != 0) { } |
|
362
|
0 |
0 |
if ($to_return->{'data'}{'.total'}{'f_dropped'} != 0) { } |
|
372
|
0 |
0 |
if ($to_return->{'data'}{'.total'}{'drop_percent'} >= $self->{'drop_percent_warn'} and $to_return->{'data'}{'.total'}{'drop_percent'} < $self->{'drop_percent_crit'}) |
|
381
|
0 |
0 |
if ($to_return->{'data'}{'.total'}{'drop_percent'} >= $self->{'drop_percent_crit'}) |
|
390
|
0 |
0 |
if ($to_return->{'data'}{'.total'}{'f_drop_percent'} >= $self->{'drop_percent_warn'} and $to_return->{'data'}{'.total'}{'f_drop_percent'} < $self->{'drop_percent_crit'}) |
|
399
|
0 |
0 |
if ($to_return->{'data'}{'.total'}{'f_drop_percent'} >= $self->{'drop_percent_crit'}) |
|
419
|
0 |
0 |
if ($@) |
|
426
|
0 |
0 |
if ($to_return->{'alertString'} eq '') { } |
|
449
|
0 |
0 |
if ($self->{'mode'} eq 'nagios') { } |
|
450
|
0 |
0 |
if ($self->{'results'}{'alert'} eq '0') { } |
|
|
0 |
0 |
elsif ($self->{'results'}{'alert'} eq '1') { } |
|
|
0 |
0 |
elsif ($self->{'results'}{'alert'} eq '2') { } |
|
|
0 |
0 |
elsif ($self->{'results'}{'alert'} eq '3') { } |