fix thresholds check refs #5982
This commit is contained in:
parent
267649564f
commit
5198810bff
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue