From d9cf33e55e5fdea4bef86f7a7e567ad55ae2d543 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Mon, 21 Dec 2015 10:35:51 +0100 Subject: [PATCH] + Fix #249 --- centreon/common/cisco/standard/snmp/mode/components/sensor.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/centreon/common/cisco/standard/snmp/mode/components/sensor.pm b/centreon/common/cisco/standard/snmp/mode/components/sensor.pm index 83a2d1bb0..0c134d3b4 100644 --- a/centreon/common/cisco/standard/snmp/mode/components/sensor.pm +++ b/centreon/common/cisco/standard/snmp/mode/components/sensor.pm @@ -184,6 +184,8 @@ sub check { next if ($oid !~ /^$mapping->{entSensorStatus}->{oid}\.(.*)$/); my $instance = $1; my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_entSensorValueEntry}, instance => $instance); + + next if (!defined($self->{results}->{$oid_entPhysicalDescr}->{$oid_entPhysicalDescr . '.' . $instance})); my $sensor_descr = $self->{results}->{$oid_entPhysicalDescr}->{$oid_entPhysicalDescr . '.' . $instance}; next if ($self->check_exclude(section => 'sensor', instance => $instance));