+ bugfix iDrac > 6

This commit is contained in:
Yann Beulque 2015-05-19 14:53:41 +02:00
parent 754da44f8e
commit 1cd6fc7ef9
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ sub run {
my $result = $self->{snmp}->get_leef(oids => [$oid_drsGlobalSystemStatus, $oid_globalSystemStatus, $oid_globalStorageStatus], nothing_quit => 1);
# iDrac 6
if (defined($result->{$oid_drsGlobalSystemStatus})) {
if (!defined($result->{$oid_globalSystemStatus})) {
$self->{output}->output_add(severity => ${$states{$result->{$oid_drsGlobalSystemStatus}}}[1],
short_msg => sprintf("Overall global status is '%s'",
${$states{$result->{$oid_drsGlobalSystemStatus}}}[0]));