diff --git a/hardware/pdu/emerson/snmp/mode/globalstatus.pm b/hardware/pdu/emerson/snmp/mode/globalstatus.pm index c9a747a3d..1eeb20634 100644 --- a/hardware/pdu/emerson/snmp/mode/globalstatus.pm +++ b/hardware/pdu/emerson/snmp/mode/globalstatus.pm @@ -154,9 +154,9 @@ sub manage_selection { my $result = $options{snmp}->map_instance(mapping => $mapping, results => $self->{results}, instance => $instance); my $name = defined($result->{lgpPduEntryUsrLabel}) && $result->{lgpPduEntryUsrLabel} ne '' ? $result->{lgpPduEntryUsrLabel} : $instance; - my $status = 'unknow'; + my $status = 'unknown'; foreach (keys %bitmap_status) { - if (($result->{lgpPduEntrySysStatus} & $_)) { + if ((int($result->{lgpPduEntrySysStatus}) & $_)) { $status = $bitmap_status{$_}; last; }