From 5d9384a4673cb7b9dc6ec3bb0e7958e2d03df001 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Mon, 20 Jan 2020 08:44:48 +0100 Subject: [PATCH] Fix #1780 --- hardware/ups/hp/snmp/mode/batterystatus.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/ups/hp/snmp/mode/batterystatus.pm b/hardware/ups/hp/snmp/mode/batterystatus.pm index 8ccf27195..6fcce8d02 100644 --- a/hardware/ups/hp/snmp/mode/batterystatus.pm +++ b/hardware/ups/hp/snmp/mode/batterystatus.pm @@ -91,7 +91,7 @@ sub new { $options{options}->add_options(arguments => { 'unknown-status:s' => { name => 'unknown_status', default => '%{status} =~ /unknown/i' }, - 'warning-status:s' => { name => 'warning_status', default => '%{status} =~ /batteryDischarging/i' }, + 'warning-status:s' => { name => 'warning_status', default => '' }, 'critical-status:s' => { name => 'critical_status', default => '' }, }); @@ -157,7 +157,7 @@ Can used special variables like: %{status}. =item B<--warning-status> -Set warning threshold for status (Default: '%{status} =~ /batteryDischarging/i'). +Set warning threshold for status (Default: ''). Can used special variables like: %{status}. =item B<--critical-status>