From 89f0d5fc62927d84d26fda62d857507fed7ac649 Mon Sep 17 00:00:00 2001 From: UrBnW <40244829+UrBnW@users.noreply.github.com> Date: Thu, 15 Jul 2021 13:52:55 +0200 Subject: [PATCH] enh(pdu/apc): tune some labels (#2965) --- hardware/pdu/apc/snmp/mode/load.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/pdu/apc/snmp/mode/load.pm b/hardware/pdu/apc/snmp/mode/load.pm index 2bfc1a2c5..afb0cf07d 100644 --- a/hardware/pdu/apc/snmp/mode/load.pm +++ b/hardware/pdu/apc/snmp/mode/load.pm @@ -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},