enh(pdu/apc): tune some labels (#2965)

This commit is contained in:
UrBnW 2021-07-15 13:52:55 +02:00 committed by GitHub
parent dfb40890d6
commit 7a7f360e99
1 changed files with 2 additions and 2 deletions

View File

@ -249,7 +249,7 @@ sub check_rpdu2 {
my $instance = $1;
my $result = $options{snmp}->map_instance(mapping => $mapping_phase, results => $snmp_result->{$oid_rPDU2PhaseStatusEntry}, instance => $instance);
my $name = 'module ' . $result->{rPDU2PhaseStatusModule} . ' phase ' . $result->{rPDU2PhaseStatusNumber};
my $name = 'mod' . $result->{rPDU2PhaseStatusModule} . 'phase' . $result->{rPDU2PhaseStatusNumber};
$self->{phase}->{$name} = {
display => $name,
status => $result->{rPDU2PhaseStatusLoadState},
@ -263,7 +263,7 @@ sub check_rpdu2 {
my $instance = $1;
my $result = $options{snmp}->map_instance(mapping => $mapping_bank, results => $snmp_result->{$oid_rPDU2BankStatusEntry}, instance => $instance);
my $name = 'module ' . $result->{rPDU2BankStatusModule} . ' num ' . $result->{rPDU2BankStatusNumber};
my $name = 'mod' . $result->{rPDU2BankStatusModule} . 'bank' . $result->{rPDU2BankStatusNumber};
$self->{bank}->{$name} = {
display => $name,
status => $result->{rPDU2BankStatusLoadState},