From a8f55748f089e938b650b7ee9b191864d55e0c55 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Mon, 12 Jun 2017 09:45:57 +0200 Subject: [PATCH] Ref #647 --- network/alcatel/omniswitch/snmp/mode/components/backplane.pm | 4 ++-- network/alcatel/omniswitch/snmp/mode/components/chassis.pm | 4 ++-- network/alcatel/omniswitch/snmp/mode/components/container.pm | 4 ++-- network/alcatel/omniswitch/snmp/mode/components/fan.pm | 2 +- network/alcatel/omniswitch/snmp/mode/components/module.pm | 4 ++-- network/alcatel/omniswitch/snmp/mode/components/other.pm | 4 ++-- network/alcatel/omniswitch/snmp/mode/components/port.pm | 4 ++-- network/alcatel/omniswitch/snmp/mode/components/psu.pm | 4 ++-- network/alcatel/omniswitch/snmp/mode/components/sensor.pm | 4 ++-- network/alcatel/omniswitch/snmp/mode/components/stack.pm | 4 ++-- network/alcatel/omniswitch/snmp/mode/components/unknown.pm | 4 ++-- 11 files changed, 21 insertions(+), 21 deletions(-) diff --git a/network/alcatel/omniswitch/snmp/mode/components/backplane.pm b/network/alcatel/omniswitch/snmp/mode/components/backplane.pm index 4d167a861..303e9c3fe 100644 --- a/network/alcatel/omniswitch/snmp/mode/components/backplane.pm +++ b/network/alcatel/omniswitch/snmp/mode/components/backplane.pm @@ -69,7 +69,7 @@ sub check { next; } - $exit = $self->get_severity(label => 'oper', section => 'backplane.oper', value => $result->{chasEntPhysAdminStatus}); + $exit = $self->get_severity(label => 'oper', section => 'backplane.oper', value => $result->{chasEntPhysOperStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { $self->{output}->output_add(severity => $exit, short_msg => sprintf("backplane '%s/%s/%s' operational status is %s", @@ -79,4 +79,4 @@ sub check { } } -1; \ No newline at end of file +1; diff --git a/network/alcatel/omniswitch/snmp/mode/components/chassis.pm b/network/alcatel/omniswitch/snmp/mode/components/chassis.pm index 2918e5867..aabd448e5 100644 --- a/network/alcatel/omniswitch/snmp/mode/components/chassis.pm +++ b/network/alcatel/omniswitch/snmp/mode/components/chassis.pm @@ -69,7 +69,7 @@ sub check { next; } - $exit = $self->get_severity(label => 'oper', section => 'chassis.oper', value => $result->{chasEntPhysAdminStatus}); + $exit = $self->get_severity(label => 'oper', section => 'chassis.oper', value => $result->{chasEntPhysOperStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { $self->{output}->output_add(severity => $exit, short_msg => sprintf("chassis '%s/%s/%s' operational status is %s", @@ -79,4 +79,4 @@ sub check { } } -1; \ No newline at end of file +1; diff --git a/network/alcatel/omniswitch/snmp/mode/components/container.pm b/network/alcatel/omniswitch/snmp/mode/components/container.pm index 883b6a749..03b411a5d 100644 --- a/network/alcatel/omniswitch/snmp/mode/components/container.pm +++ b/network/alcatel/omniswitch/snmp/mode/components/container.pm @@ -69,7 +69,7 @@ sub check { next; } - $exit = $self->get_severity(label => 'oper', section => 'container.oper', value => $result->{chasEntPhysAdminStatus}); + $exit = $self->get_severity(label => 'oper', section => 'container.oper', value => $result->{chasEntPhysOperStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { $self->{output}->output_add(severity => $exit, short_msg => sprintf("container '%s/%s/%s' operational status is %s", @@ -79,4 +79,4 @@ sub check { } } -1; \ No newline at end of file +1; diff --git a/network/alcatel/omniswitch/snmp/mode/components/fan.pm b/network/alcatel/omniswitch/snmp/mode/components/fan.pm index 763addd69..9800a772b 100644 --- a/network/alcatel/omniswitch/snmp/mode/components/fan.pm +++ b/network/alcatel/omniswitch/snmp/mode/components/fan.pm @@ -75,7 +75,7 @@ sub check { next; } - $exit = $self->get_severity(label => 'oper', section => 'fan.oper', value => $result->{chasEntPhysAdminStatus}); + $exit = $self->get_severity(label => 'oper', section => 'fan.oper', value => $result->{chasEntPhysOperStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { $self->{output}->output_add(severity => $exit, short_msg => sprintf("fan '%s/%s/%s' operational status is %s", diff --git a/network/alcatel/omniswitch/snmp/mode/components/module.pm b/network/alcatel/omniswitch/snmp/mode/components/module.pm index ff631571c..4786112e8 100644 --- a/network/alcatel/omniswitch/snmp/mode/components/module.pm +++ b/network/alcatel/omniswitch/snmp/mode/components/module.pm @@ -69,7 +69,7 @@ sub check { next; } - $exit = $self->get_severity(label => 'oper', section => 'module.oper', value => $result->{chasEntPhysAdminStatus}); + $exit = $self->get_severity(label => 'oper', section => 'module.oper', value => $result->{chasEntPhysOperStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { $self->{output}->output_add(severity => $exit, short_msg => sprintf("module '%s/%s/%s' operational status is %s", @@ -79,4 +79,4 @@ sub check { } } -1; \ No newline at end of file +1; diff --git a/network/alcatel/omniswitch/snmp/mode/components/other.pm b/network/alcatel/omniswitch/snmp/mode/components/other.pm index cdb704a9d..e2d48cac0 100644 --- a/network/alcatel/omniswitch/snmp/mode/components/other.pm +++ b/network/alcatel/omniswitch/snmp/mode/components/other.pm @@ -69,7 +69,7 @@ sub check { next; } - $exit = $self->get_severity(label => 'oper', section => 'other.oper', value => $result->{chasEntPhysAdminStatus}); + $exit = $self->get_severity(label => 'oper', section => 'other.oper', value => $result->{chasEntPhysOperStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { $self->{output}->output_add(severity => $exit, short_msg => sprintf("other '%s/%s/%s' operational status is %s", @@ -79,4 +79,4 @@ sub check { } } -1; \ No newline at end of file +1; diff --git a/network/alcatel/omniswitch/snmp/mode/components/port.pm b/network/alcatel/omniswitch/snmp/mode/components/port.pm index d8ad20bc3..870936d07 100644 --- a/network/alcatel/omniswitch/snmp/mode/components/port.pm +++ b/network/alcatel/omniswitch/snmp/mode/components/port.pm @@ -69,7 +69,7 @@ sub check { next; } - $exit = $self->get_severity(label => 'oper', section => 'port.oper', value => $result->{chasEntPhysAdminStatus}); + $exit = $self->get_severity(label => 'oper', section => 'port.oper', value => $result->{chasEntPhysOperStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { $self->{output}->output_add(severity => $exit, short_msg => sprintf("port '%s/%s/%s' operational status is %s", @@ -79,4 +79,4 @@ sub check { } } -1; \ No newline at end of file +1; diff --git a/network/alcatel/omniswitch/snmp/mode/components/psu.pm b/network/alcatel/omniswitch/snmp/mode/components/psu.pm index 04921e1fa..cd87e14d5 100644 --- a/network/alcatel/omniswitch/snmp/mode/components/psu.pm +++ b/network/alcatel/omniswitch/snmp/mode/components/psu.pm @@ -69,7 +69,7 @@ sub check { next; } - $exit = $self->get_severity(label => 'oper', section => 'psu.oper', value => $result->{chasEntPhysAdminStatus}); + $exit = $self->get_severity(label => 'oper', section => 'psu.oper', value => $result->{chasEntPhysOperStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { $self->{output}->output_add(severity => $exit, short_msg => sprintf("power supply '%s/%s/%s' operational status is %s", @@ -79,4 +79,4 @@ sub check { } } -1; \ No newline at end of file +1; diff --git a/network/alcatel/omniswitch/snmp/mode/components/sensor.pm b/network/alcatel/omniswitch/snmp/mode/components/sensor.pm index 5a6a1f5f2..23bcddfa8 100644 --- a/network/alcatel/omniswitch/snmp/mode/components/sensor.pm +++ b/network/alcatel/omniswitch/snmp/mode/components/sensor.pm @@ -69,7 +69,7 @@ sub check { next; } - $exit = $self->get_severity(label => 'oper', section => 'sensor.oper', value => $result->{chasEntPhysAdminStatus}); + $exit = $self->get_severity(label => 'oper', section => 'sensor.oper', value => $result->{chasEntPhysOperStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { $self->{output}->output_add(severity => $exit, short_msg => sprintf("sensor '%s/%s/%s' operational status is %s", @@ -79,4 +79,4 @@ sub check { } } -1; \ No newline at end of file +1; diff --git a/network/alcatel/omniswitch/snmp/mode/components/stack.pm b/network/alcatel/omniswitch/snmp/mode/components/stack.pm index 5b24ec8d6..4bd8f39db 100644 --- a/network/alcatel/omniswitch/snmp/mode/components/stack.pm +++ b/network/alcatel/omniswitch/snmp/mode/components/stack.pm @@ -69,7 +69,7 @@ sub check { next; } - $exit = $self->get_severity(label => 'oper', section => 'stack.oper', value => $result->{chasEntPhysAdminStatus}); + $exit = $self->get_severity(label => 'oper', section => 'stack.oper', value => $result->{chasEntPhysOperStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { $self->{output}->output_add(severity => $exit, short_msg => sprintf("stack '%s/%s/%s' operational status is %s", @@ -79,4 +79,4 @@ sub check { } } -1; \ No newline at end of file +1; diff --git a/network/alcatel/omniswitch/snmp/mode/components/unknown.pm b/network/alcatel/omniswitch/snmp/mode/components/unknown.pm index fe18d7a17..197ea2517 100644 --- a/network/alcatel/omniswitch/snmp/mode/components/unknown.pm +++ b/network/alcatel/omniswitch/snmp/mode/components/unknown.pm @@ -69,7 +69,7 @@ sub check { next; } - $exit = $self->get_severity(label => 'oper', section => 'unknown.oper', value => $result->{chasEntPhysAdminStatus}); + $exit = $self->get_severity(label => 'oper', section => 'unknown.oper', value => $result->{chasEntPhysOperStatus}); if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) { $self->{output}->output_add(severity => $exit, short_msg => sprintf("unknown '%s/%s/%s' operational status is %s", @@ -79,4 +79,4 @@ sub check { } } -1; \ No newline at end of file +1;