1
0
mirror of https://github.com/c-kr/check_json.git synced 2024-11-23 10:53:47 +01:00

fixed threshold output in perfdata

This commit is contained in:
Christopher Kreft 2013-05-01 15:01:23 +02:00
parent 59754e1b8c
commit 75942dc27e

View File

@ -86,14 +86,16 @@ if (defined $np->opts->divisor) {
$value = $value/$np->opts->divisor; $value = $value/$np->opts->divisor;
} }
my $result = $np->check_threshold($value);
$np->add_perfdata( $np->add_perfdata(
label => 'value', label => 'value',
value => $value, value => $value,
#threshold => $threshold, threshold => $np->threshold(),
); );
$np->nagios_exit( $np->nagios_exit(
return_code => $np->check_threshold($value), return_code => $result,
message => $value message => $value,
); );