fix unknown threshold

This commit is contained in:
qgarnier 2017-10-12 11:34:51 +02:00
parent 2af0e6e574
commit a8b9adcb71
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ sub custom_threshold_output {
$status = 'warning'; $status = 'warning';
} elsif (defined($instance_mode->{option_results}->{unknown_status}) && $instance_mode->{option_results}->{unknown_status} ne '' && } elsif (defined($instance_mode->{option_results}->{unknown_status}) && $instance_mode->{option_results}->{unknown_status} ne '' &&
eval "$instance_mode->{option_results}->{unknown_status}") { eval "$instance_mode->{option_results}->{unknown_status}") {
$status = 'warning'; $status = 'unknown';
} }
}; };
if (defined($message)) { if (defined($message)) {

View File

@ -44,7 +44,7 @@ sub custom_threshold_output {
$status = 'warning'; $status = 'warning';
} elsif (defined($instance_mode->{option_results}->{unknown_status}) && $instance_mode->{option_results}->{unknown_status} ne '' && } elsif (defined($instance_mode->{option_results}->{unknown_status}) && $instance_mode->{option_results}->{unknown_status} ne '' &&
eval "$instance_mode->{option_results}->{unknown_status}") { eval "$instance_mode->{option_results}->{unknown_status}") {
$status = 'warning'; $status = 'unknown';
} }
}; };
if (defined($message)) { if (defined($message)) {