This commit is contained in:
garnier-quentin 2019-02-13 13:35:05 +01:00
parent 8b0e221b41
commit 0e66564c3d
1 changed files with 3 additions and 2 deletions

View File

@ -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