From a8b9adcb710ee0ff44016409d42ecba007297c4f Mon Sep 17 00:00:00 2001 From: qgarnier Date: Thu, 12 Oct 2017 11:34:51 +0200 Subject: [PATCH] fix unknown threshold --- hardware/ups/apc/snmp/mode/batterystatus.pm | 2 +- hardware/ups/apc/snmp/mode/outputlines.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/ups/apc/snmp/mode/batterystatus.pm b/hardware/ups/apc/snmp/mode/batterystatus.pm index f39ffc7ae..60bae6757 100644 --- a/hardware/ups/apc/snmp/mode/batterystatus.pm +++ b/hardware/ups/apc/snmp/mode/batterystatus.pm @@ -44,7 +44,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)) { diff --git a/hardware/ups/apc/snmp/mode/outputlines.pm b/hardware/ups/apc/snmp/mode/outputlines.pm index a0fef8274..c9609438e 100644 --- a/hardware/ups/apc/snmp/mode/outputlines.pm +++ b/hardware/ups/apc/snmp/mode/outputlines.pm @@ -44,7 +44,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)) {