This commit is contained in:
garnier-quentin 2019-05-28 11:12:11 +02:00
parent 991f1b5145
commit ee23ef412d
1 changed files with 1 additions and 1 deletions

View File

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