From ae550fc1e6416e2b581118014886181209b2587a Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 10 Mar 2016 17:05:00 +0100 Subject: [PATCH] + fix ospf threshold --- centreon-plugins/apps/protocols/ospf/snmp/mode/neighbor.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon-plugins/apps/protocols/ospf/snmp/mode/neighbor.pm b/centreon-plugins/apps/protocols/ospf/snmp/mode/neighbor.pm index 26308ed94..10b3690d2 100644 --- a/centreon-plugins/apps/protocols/ospf/snmp/mode/neighbor.pm +++ b/centreon-plugins/apps/protocols/ospf/snmp/mode/neighbor.pm @@ -155,7 +155,7 @@ sub new { $options{options}->add_options(arguments => { "warning-status:s" => { name => 'warning_status', default => '' }, - "critical-status:s" => { name => 'critical_status', default => '%{NbrState} ~ /down/i' }, + "critical-status:s" => { name => 'critical_status', default => '%{NbrState} =~ /down/i' }, "warning-total-change:s" => { name => 'warning_total_change', default => '' }, "critical-total-change:s" => { name => 'critical_total_change', default => '' }, }); @@ -253,7 +253,7 @@ Can used special variables like: %{NbrState}, %{NbrRtrId}, %{NbrIpAddr} =item B<--critical-status> -Set critical threshold for status (Default: '%{NbrState} ~ /down/i'). +Set critical threshold for status (Default: '%{NbrState} =~ /down/i'). Can used special variables like: %{NbrState}, %{NbrRtrId}, %{NbrIpAddr} =item B<--warning-total-change>