fix thresholds check refs #5982

This commit is contained in:
Kevin Duret 2014-11-26 16:15:03 +01:00
parent 267649564f
commit 5198810bff
1 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ sub check_options {
$self->{output}->add_option_msg(short_msg => "Wrong critical (1min) threshold '" . $self->{crit1m} . "'.");
$self->{output}->option_exit();
}
if (($self->{perfdata}->threshold_validate(label => 'crit5m', value => $self->{crit5})) == 0) {
if (($self->{perfdata}->threshold_validate(label => 'crit5m', value => $self->{crit5m})) == 0) {
$self->{output}->add_option_msg(short_msg => "Wrong critical (5min) threshold '" . $self->{crit5m} . "'.");
$self->{output}->option_exit();
}
@ -202,4 +202,4 @@ Threshold critical in percent (5s,1min,5min).
=back
=cut
=cut