From 00d6ace975d0208473a7bb4cb303901e57e925c2 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 17 Nov 2016 15:58:01 +0100 Subject: [PATCH] + update default threshold --- hardware/ats/apc/snmp/mode/outputlines.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/ats/apc/snmp/mode/outputlines.pm b/hardware/ats/apc/snmp/mode/outputlines.pm index f21e76b65..5df782235 100644 --- a/hardware/ats/apc/snmp/mode/outputlines.pm +++ b/hardware/ats/apc/snmp/mode/outputlines.pm @@ -145,7 +145,7 @@ sub new { $options{options}->add_options(arguments => { "warning-status:s" => { name => 'warning_status', default => '%{status} =~ /nearoverload/' }, - "critical-status:s" => { name => 'critical_status', default => '%{status} =~ /lowload|overload/' }, + "critical-status:s" => { name => 'critical_status', default => '%{status} =~ /^(lowload|overload)$/' }, }); return $self; @@ -240,7 +240,7 @@ Can used special variables like: %{status}, %{display} =item B<--critical-status> -Set critical threshold for status (Default: '%{status} =~ /lowload|overload/'). +Set critical threshold for status (Default: '%{status} =~ /^(lowload|overload)$/'). Can used special variables like: %{status}, %{display} =back