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:
parent
59754e1b8c
commit
75942dc27e
@ -86,14 +86,16 @@ if (defined $np->opts->divisor) {
|
||||
$value = $value/$np->opts->divisor;
|
||||
}
|
||||
|
||||
my $result = $np->check_threshold($value);
|
||||
|
||||
$np->add_perfdata(
|
||||
label => 'value',
|
||||
value => $value,
|
||||
#threshold => $threshold,
|
||||
threshold => $np->threshold(),
|
||||
);
|
||||
|
||||
$np->nagios_exit(
|
||||
return_code => $np->check_threshold($value),
|
||||
message => $value
|
||||
return_code => $result,
|
||||
message => $value,
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user