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