+ Fix unknown status
This commit is contained in:
parent
fc09d7679b
commit
28695bbcfb
|
@ -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)) {
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue