| line |
true |
false |
branch |
|
127
|
0 |
3 |
if ($self->{'use_auth'}) |
|
143
|
0 |
0 |
if (defined $self->{'username'} and defined $self->{'password'} and $self->{'use_auth'}) |
|
188
|
3 |
4 |
if ($res->{'success'}) { } |
|
208
|
0 |
5 |
unless $type == -1 or grep {$_ == $type;} keys %{MONIT_TYPES();} |
|
213
|
2 |
0 |
if ($type == -1 or $s->{'-type'} == $type) |
|
240
|
2 |
2 |
if ($s->{'name'} eq $service) |
|
245
|
2 |
0 |
if exists $s->{'-type'} |
|
267
|
12 |
20 |
if exists $s->{$thing} |
|
272
|
2 |
0 |
if (my $sys = $s->{'system'} || $s) |
|
275
|
6 |
2 |
if exists $sys->{'memory'}{$thing} |
|
280
|
0 |
4 |
if exists $sys->{'swap'}{$thing} |
|
285
|
2 |
2 |
if exists $sys->{'cpu'}{$thing} |
|
290
|
3 |
3 |
if exists $sys->{'load'}{$thing} |
|
298
|
0 |
2 |
unless scalar keys %{$status_href;} |
|
309
|
0 |
0 |
unless grep {$command eq $_;} keys %{MONIT_ACTIONS();} |
|
311
|
0 |
0 |
unless (defined $service) |
|
322
|
0 |
0 |
unless $res->{'success'} |