fix unknown threshold
This commit is contained in:
parent
2af0e6e574
commit
a8b9adcb71
|
@ -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)) {
|
||||||
|
|
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue