From e34f7ecf1f3cc878743c332993785c29796ef338 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 13 Feb 2019 13:35:05 +0100 Subject: [PATCH] Fix #1242 --- centreon-plugins/network/extreme/snmp/mode/stack.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/centreon-plugins/network/extreme/snmp/mode/stack.pm b/centreon-plugins/network/extreme/snmp/mode/stack.pm index 3d8607a83..3adfcd543 100644 --- a/centreon-plugins/network/extreme/snmp/mode/stack.pm +++ b/centreon-plugins/network/extreme/snmp/mode/stack.pm @@ -108,7 +108,8 @@ sub run { ], nothing_quit => 1); my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $results->{$mapping->{extremeStackDetection}->{oid}}, instance => '0'); - if ($result->{extremeStackDetection} eq 'disabled') { + # disable is voluntary + if ($result->{extremeStackDetection} eq 'disable') { $self->{output}->output_add(severity => 'OK', short_msg => 'Stacking is disable'); $self->{output}->display(); @@ -183,4 +184,4 @@ Example: --threshold-overload='stack,WARNING,mismatch' =back =cut - \ No newline at end of file +