blib/lib/JMX/Jmx4Perl/Nagios/SingleCheck.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 9 | 91 | 9.8 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
185 | 0 | 0 | 0 | defined $delta and not $script_mode |
196 | 0 | 0 | 0 | $self->base || $self->base_mbean and not $script_mode |
203 | 0 | 0 | 0 | $self->perfdata and $self->perfdata =~ /^\s*\%\s*/ |
269 | 0 | 0 | 0 | $req->get('type') eq 'read' and $req->is_mbean_pattern |
280 | 0 | 0 | 0 | ref $value and $self->string |
453 | 0 | 0 | 0 | ref $resp->value and not $self->string |
0 | 0 | 0 | not $req->is_mbean_pattern and (ref $resp->value and not $self->string) | |
0 | 0 | 0 | not $req->is_mbean_pattern and (ref $resp->value and not $self->string) and not &JSON::is_bool($resp->value) | |
523 | 0 | 0 | 0 | defined $config_args and !ref($config_args) eq 'ARRAY' |
line | l | !l | condition |
---|---|---|---|
43 | 1 | 0 | shift() || die('No Nagios Plugin given') |
128 | 0 | 0 | $self->script || die('No script given') |
163 | 0 | 0 | shift() || {} |
252 | 0 | 0 | shift() || (return) |
257 | 0 | 0 | $$error_stat{$code} || [] |
396 | 13 | 0 | shift() || $self->unit || (return $value, undef) |
476 | 0 | 0 | $self->attribute || $self->operation || '' |
581 | 0 | 0 | $self->_check_string_threshold($value, 2, $self->critical) || $self->_check_string_threshold($value, 1, $self->warning) || 0 |
683 | 0 | 0 | $$args{'rel_value'} || 0 |
687 | 0 | 0 | $$args{'base'} || 0 |
689 | 1 | 0 | ($what eq 'u' ? $$args{'unit'} : $$args{'base_unit'}) || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
49 | 0 | 1 | 0 | ref $class || $class |
74 | 0 | 0 | 0 | $self->attribute || $self->value |
90 | 0 | 0 | 0 | $$self{'np'}->opts->{'method'} || $$self{'config'}{'method'} |
96 | 0 | 0 | 0 | $self->base or $self->base_mbean |
165 | 0 | 0 | 0 | $$np{'msg_handler'} || $np |
196 | 0 | 0 | 0 | $self->base || $self->base_mbean |
255 | 0 | 0 | 0 | $$self{'config'}{'name'} || $$self{'config'}{'key'} |
527 | 0 | 0 | 0 | @cli_args or @c_args |
565 | 0 | 0 | 0 | $self->numeric or $self->string |
623 | 0 | 0 | 1 | $code == 2 or $code == 1 |
624 | 0 | 0 | 0 | $self->base or $self->base_mbean |
637 | 0 | 0 | 1 | $self->base or $self->base_mbean |
682 | 0 | 0 | 3 | $what eq 'r' or $what eq 'q' |
1 | 0 | 2 | $what eq 'u' or $what eq 'w' |