line |
!l |
l&&!r |
l&&r |
condition |
48
|
0 |
0 |
0 |
$self->opts->can('blacklist') and $self->opts->blacklist |
|
0 |
0 |
0 |
$self->opts->can('blacklist') and $self->opts->blacklist and -f $self->opts->blacklist |
343
|
2 |
0 |
0 |
$self->opts->name and $self->opts->name =~ /(%22)|(%27)/ |
352
|
0 |
0 |
0 |
defined $_->{'alias'} and grep {$self->opts->mode eq $_;} @{$$_{'alias'};} |
360
|
0 |
2 |
0 |
$self->opts->can('statefilesdir') and not $self->opts->statefilesdir |
379
|
0 |
2 |
0 |
$self->opts->can('warningx') and $self->opts->warningx |
385
|
0 |
2 |
0 |
$self->opts->can('criticalx') and $self->opts->criticalx |
434
|
130 |
0 |
0 |
$self->get_variable('verbose') and $self->get_variable('verbose') > $self->get_variable('verbosity', 10) |
552
|
0 |
0 |
0 |
defined $self->{$_} and ref $self->{$_} ne 'ARRAY' |
559
|
0 |
0 |
0 |
defined $self->{$_} and ref $self->{$_} eq 'ARRAY' |
573
|
0 |
0 |
0 |
UNIVERSAL::can($obj, 'isa') and $obj->can('dump') |
682
|
0 |
0 |
0 |
$self->can('compatibility_methods') and $self->isa($deprecated_class) |
706
|
0 |
0 |
0 |
$password and $password =~ m[^rfc3986://(.*)] |
820
|
0 |
0 |
0 |
$ENV{$survive_env} and not scalar grep({/^$survive_env=/;} keys %{$self->opts->environment;}) |
837
|
0 |
0 |
0 |
$1 eq $option and $2 =~ /s%/ |
851
|
0 |
0 |
0 |
$self->opts->runas and $> == 0 |
940
|
0 |
0 |
0 |
$level == 3 and $self->{'failed'} == 0 |
1023
|
0 |
0 |
0 |
exists $self->{'blacklisted'} and $self->{'blacklisted'} |
1116
|
10 |
21 |
0 |
$self->opts->lookback and $self->opts->lookback == 99999 |
|
31 |
0 |
0 |
$self->opts->lookback and $self->opts->lookback == 99999 and $params{'freeze'} == 0 |
|
10 |
21 |
0 |
$self->opts->lookback and $self->opts->lookback == 99999 |
|
31 |
0 |
0 |
$self->opts->lookback and $self->opts->lookback == 99999 and $params{'freeze'} == 1 |
|
10 |
21 |
0 |
$self->opts->lookback and $self->opts->lookback == 99999 |
|
31 |
0 |
0 |
$self->opts->lookback and $self->opts->lookback == 99999 and $params{'freeze'} == 2 |
1240
|
0 |
0 |
20 |
exists $last_values->{$_} && defined $last_values->{$_} |
|
20 |
0 |
0 |
not exists $last_values->{$_} && defined $last_values->{$_} and exists $params{'lastarray'} |
|
0 |
20 |
0 |
exists $last_values->{$_} and not defined $last_values->{$_} |
1362
|
0 |
0 |
0 |
ref $validfunc ne 'CODE' and $validfunc eq 'percent' |
|
0 |
0 |
0 |
ref $validfunc ne 'CODE' and $validfunc eq 'positive' |
1402
|
0 |
31 |
0 |
ref $params{'save'} eq 'HASH' and exists $params{'save'}{'timestamp'} |
1481
|
0 |
0 |
0 |
join '/', @dirs and not -d join('/', @dirs) |
line |
l |
!l&&r |
!l&&!r |
condition |
304
|
2 |
0 |
0 |
grep({$self->opts->mode eq $_;} map({$_->{'spec'};} @{$$Monitoring::GLPlugin::plugin{'modes'};})) || grep({$self->opts->mode eq $_;} map({defined $_->{'alias'} ? @{$_->{'alias'};} : ();} @{$$Monitoring::GLPlugin::plugin{'modes'};})) |
396
|
0 |
2 |
0 |
$timeout ||= $self->opts->timeout |
562
|
0 |
0 |
0 |
ref $obj ne 'HASH' or not exists $obj->{'flat_indices'} |
789
|
2 |
0 |
0 |
grep {$self->opts->mode eq $_;} map({$_->{'spec'};} @{$$Monitoring::GLPlugin::plugin{'modes'};}) or grep {$self->opts->mode eq $_;} map({defined $_->{'alias'} ? @{$_->{'alias'};} : ();} @{$$Monitoring::GLPlugin::plugin{'modes'};}) |
805
|
0 |
0 |
0 |
not $ENV{$_} or $ENV{$_} ne $self->opts->environment->{$_} |
876
|
0 |
0 |
0 |
$message ||= $self->{'info'} |
882
|
0 |
0 |
0 |
$message ||= $self->{'info'} |
888
|
0 |
0 |
0 |
$message ||= $self->{'info'} |
894
|
0 |
0 |
0 |
$message ||= $self->{'info'} |
936
|
0 |
0 |
0 |
$message ||= $self->{'info'} |
1139
|
26 |
5 |
0 |
$self->load_state(%params) || eval {
do {
my $empty_events = {};
foreach $_ (@keys) {
if (ref $self->{$_} eq 'ARRAY') {
$empty_events->{$_} = [];
}
else {
$empty_events->{$_} = 0;
};
};
$empty_events->{'timestamp'} = 0;
if ($mode eq 'lookback') {
$empty_events->{'lookback_history'} = {};
}
elsif ($mode eq 'lookback_freeze_chill') {
$empty_events->{'cold'} = {};
$empty_events->{'frozen'} = {};
};
$empty_events
}
} |
1216
|
14 |
37 |
0 |
$mode eq 'normal' or $mode eq 'lookback' |
|
51 |
0 |
0 |
$mode eq 'normal' or $mode eq 'lookback' or $mode eq 'lookback_freeze_chill' |
1240
|
20 |
0 |
0 |
exists $last_values->{$_} && defined $last_values->{$_} || exists $params{'lastarray'} |
1323
|
0 |
0 |
0 |
$@ or not -w $self->statefilesdir |
1366
|
0 |
0 |
0 |
$value < 0 || $value > 100 |