From e9a23390403e341e31ed6ca26ebfee38b702b40b Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 9 Jun 2017 19:45:46 +0200 Subject: [PATCH] ref #647 --- network/alcatel/omniswitch/snmp/mode/components/fan.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/network/alcatel/omniswitch/snmp/mode/components/fan.pm b/network/alcatel/omniswitch/snmp/mode/components/fan.pm index e575a5668..763addd69 100644 --- a/network/alcatel/omniswitch/snmp/mode/components/fan.pm +++ b/network/alcatel/omniswitch/snmp/mode/components/fan.pm @@ -89,9 +89,9 @@ sub check { my ($phys_index, $loc_index) = ($1, $2); my $status = $self->{results}->{$oids{alaChasEntPhysFanStatus}}->{$key}; my $descr = defined($self->{results}->{entity}->{$oids{entPhysicalDescr} . '.' . $phys_index}) ? - $self->{results}->{$oids{entPhysicalDescr}}->{$oids{entPhysicalDescr} . '.' . $phys_index} : 'unknown'; + $self->{results}->{entity}->{$oids{entPhysicalDescr} . '.' . $phys_index} : 'unknown'; my $name = defined($self->{results}->{entity}->{$oids{entPhysicalName} . '.' . $phys_index}) ? - $self->{results}->{$oids{entPhysicalName}}->{$oids{entPhysicalName} . '.' . $phys_index} : 'unknown'; + $self->{results}->{entity}->{$oids{entPhysicalName} . '.' . $phys_index} : 'unknown'; next if ($self->check_filter(section => 'fan', instance => $phys_index . '.' . $loc_index)); $self->{components}->{fan}->{total}++; @@ -110,4 +110,4 @@ sub check { } } -1; \ No newline at end of file +1;