From ee23ef412d677ee5a786456331bc9cb81f61aaea Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 28 May 2019 11:12:11 +0200 Subject: [PATCH] Ref #1522 --- .../telephony/avaya/mediagateway/snmp/mode/components/alarm.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/hardware/telephony/avaya/mediagateway/snmp/mode/components/alarm.pm b/centreon-plugins/hardware/telephony/avaya/mediagateway/snmp/mode/components/alarm.pm index d0ac7f4f6..c3f25675f 100644 --- a/centreon-plugins/hardware/telephony/avaya/mediagateway/snmp/mode/components/alarm.pm +++ b/centreon-plugins/hardware/telephony/avaya/mediagateway/snmp/mode/components/alarm.pm @@ -59,7 +59,7 @@ sub check { my $oid_cmgHardwareFaultMask = '.1.3.6.1.4.1.6889.2.9.1.1.10.12.0'; return if (!defined($self->{results}->{$oid_cmgHardwareFaultMask})); - $self->{results}->{$oid_cmgHardwareFaultMask} = oct("0b" . unpack('b*', $self->{results}->{$oid_cmgHardwareFaultMask})); + $self->{results}->{$oid_cmgHardwareFaultMask} = oct("0b" . unpack('B*', $self->{results}->{$oid_cmgHardwareFaultMask})); foreach (sort { $a <=> $b } keys %$bits_alarm) { my $instance = $_; my $status = 'disabled';