fix apc pdu

This commit is contained in:
garnier-quentin 2019-09-17 15:15:26 +02:00
parent 6ca95d3a0c
commit f57cb02165
1 changed files with 2 additions and 2 deletions

View File

@ -239,7 +239,7 @@ sub check_rpdu2 {
my $snmp_result = $options{snmp}->get_multiple_table(oids => [
{ oid => $oid_rPDU2PhaseStatusEntry, end => $mapping_phase->{rPDU2PhaseStatusPower}->{oid} },
{ oid => $oid_rPDU2BankStatusEntry, end => $mapping_bank->{rPDU2BankStatusCurrent}->{oid} },
{ oid => $oid_rPDU2DeviceStatusEntry, end => $mapping_bank->{rPDU2DeviceStatusPower}->{oid} },
{ oid => $oid_rPDU2DeviceStatusEntry, end => $mapping_device->{rPDU2DeviceStatusPower}->{oid} },
]);
foreach my $oid (keys %{$snmp_result->{$oid_rPDU2PhaseStatusEntry}}) {
@ -256,7 +256,7 @@ sub check_rpdu2 {
}
foreach my $oid (keys %{$snmp_result->{$oid_rPDU2BankStatusEntry}}) {
next if ($oid !~ /^$mapping_phase->{rPDU2BankStatusLoadState}->{oid}\.(.*)$/);
next if ($oid !~ /^$mapping_bank->{rPDU2BankStatusLoadState}->{oid}\.(.*)$/);
my $instance = $1;
my $result = $options{snmp}->map_instance(mapping => $mapping_bank, results => $snmp_result->{$oid_rPDU2BankStatusEntry}, instance => $instance);