line |
true |
false |
branch |
63
|
0 |
0 |
if (defined $config) { } |
64
|
0 |
0 |
if (ref $config ne 'HASH' and ref $config ne 'Config::Tiny') |
70
|
0 |
0 |
unless (defined $config->{'_'}) |
74
|
0 |
0 |
if (defined $config->{'_'}{'env'}) |
75
|
0 |
0 |
unless (defined $$config{$config->{'_'}{'env'}}) |
86
|
0 |
0 |
if (defined $hosts) { } |
87
|
0 |
0 |
if (ref $hosts ne 'HASH' and ref $config ne 'Config::Tiny') |
103
|
0 |
0 |
unless (defined $self->{'config'}{'_'}{'warn_on_poll'}) |
106
|
0 |
0 |
unless (defined $self->{'config'}{'_'}{'method'}) |
109
|
0 |
0 |
unless (defined $self->{'config'}{'_'}{'ssh'}) |
112
|
0 |
0 |
unless (defined $self->{'config'}{'_'}{'snmp'}) |
144
|
0 |
0 |
unless (defined $config_file) |
147
|
0 |
0 |
unless (defined $hosts_file) |
152
|
0 |
0 |
unless (defined $config) |
157
|
0 |
0 |
unless (defined $hosts) |
203
|
0 |
0 |
if (not defined $opts) { } |
207
|
0 |
0 |
if (ref $opts ne 'HASH') |
211
|
0 |
0 |
unless (defined $opts->{'command'}) |
217
|
0 |
0 |
unless (defined $opts->{'method'}) |
223
|
0 |
0 |
unless (defined $opts->{'env'}) |
224
|
0 |
0 |
if (defined $self->{'config'}{'_'}{'env'}) |
231
|
0 |
0 |
if (defined $opts->{'env'} and $opts->{'env'} eq '_') |
237
|
0 |
0 |
if ($opts->{'method'} eq 'load_1m') { } |
|
0 |
0 |
elsif ($opts->{'method'} eq 'ram_used_percent') { } |
246
|
0 |
0 |
unless (defined $host) |
252
|
0 |
0 |
if (defined $self->{'hosts'}{$host}{'host'}) |
255
|
0 |
0 |
if (defined $self->{'hosts'}{$host}{'env'} and $default_env) |
260
|
0 |
0 |
if (defined $opts->{'env'} and not defined $self->{'config'}{$opts->{'env'}}) |
269
|
0 |
0 |
if (defined $opts->{'env'}) |
282
|
0 |
0 |
if (defined $self->{'config'}{'_'}{'ssh_user'}) { } |
290
|
0 |
0 |
if (defined $env_command) |
296
|
0 |
0 |
if (defined $env_command) { } |
304
|
0 |
0 |
if ($opts->{'debug'}) |
308
|
0 |
0 |
if (defined $opts->{'print_cmd'} and $opts->{'print_cmd'}) |
348
|
0 |
0 |
if ($@ and $self->{'config'}{'_'}{'warn_on_poll'}) |
353
|
0 |
0 |
if (defined $load) { } |
|
0 |
0 |
elsif (defined $poll_failed and not defined $load) { } |
366
|
0 |
0 |
unless (defined $sorted[0]) |
412
|
0 |
0 |
if ($@ and $self->{'config'}{'_'}{'warn_on_poll'}) |
417
|
0 |
0 |
if (defined $total) { } |
|
0 |
0 |
elsif (defined $poll_failed and not defined $percent) { } |
430
|
0 |
0 |
unless (defined $sorted[0]) |
456
|
0 |
0 |
unless (defined $host) |
460
|
0 |
0 |
unless (defined $self->{'hosts'}{$host}) |
466
|
0 |
0 |
if (defined $self->{'config'}{'_'}{'snmp'}) |
470
|
0 |
0 |
if (defined $self->{'hosts'}{'snmp'}) |