+ Fix unknown status

This commit is contained in:
garnier-quentin 2016-03-24 22:06:38 +01:00
parent fc09d7679b
commit 28695bbcfb
5 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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

View File

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