| line |
true |
false |
branch |
|
120
|
0 |
3 |
if ($self->{'use_auth'}) |
|
136
|
0 |
0 |
if (defined $self->{'username'} and defined $self->{'password'} and $self->{'use_auth'}) |
|
181
|
3 |
4 |
if ($res->{'success'}) { } |
|
201
|
0 |
5 |
unless $type == -1 or grep {$_ == $type;} keys %{MONIT_TYPES();} |
|
206
|
2 |
0 |
if ($type == -1 or $s->{'-type'} == $type) |
|
233
|
2 |
2 |
if ($s->{'name'} eq $service) |
|
238
|
2 |
0 |
if exists $s->{'-type'} |
|
260
|
12 |
20 |
if exists $s->{$thing} |
|
265
|
2 |
0 |
if (my $sys = $s->{'system'} || $s) |
|
268
|
6 |
2 |
if exists $sys->{'memory'}{$thing} |
|
273
|
0 |
4 |
if exists $sys->{'swap'}{$thing} |
|
278
|
2 |
2 |
if exists $sys->{'cpu'}{$thing} |
|
283
|
3 |
3 |
if exists $sys->{'load'}{$thing} |
|
290
|
0 |
2 |
unless scalar keys %$status_href |
|
302
|
0 |
0 |
unless grep {$command eq $_;} keys %{MONIT_ACTIONS();} |
|
304
|
0 |
0 |
unless (defined $service) |
|
315
|
0 |
0 |
unless $res->{'success'} |