From 0a43cf8657fda4073e956b510e602af83da1047c Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 1 Jan 2019 17:01:05 +0100 Subject: [PATCH] + enhance cisco environment sensor filter (break change) --- .../common/cisco/standard/snmp/mode/components/sensor.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/centreon/common/cisco/standard/snmp/mode/components/sensor.pm b/centreon-plugins/centreon/common/cisco/standard/snmp/mode/components/sensor.pm index 00286287b..3c55efd06 100644 --- a/centreon-plugins/centreon/common/cisco/standard/snmp/mode/components/sensor.pm +++ b/centreon-plugins/centreon/common/cisco/standard/snmp/mode/components/sensor.pm @@ -188,7 +188,7 @@ sub check { next if (!defined($self->{results}->{$oid_entPhysicalDescr}->{$oid_entPhysicalDescr . '.' . $instance})); my $sensor_descr = $self->{results}->{$oid_entPhysicalDescr}->{$oid_entPhysicalDescr . '.' . $instance}; - next if ($self->check_filter(section => 'sensor', instance => $instance)); + next if ($self->check_filter(section => 'sensor', instance => $result->{entSensorType} . '.' . $instance)); $self->{components}->{sensor}->{total}++; $result->{entSensorValue} = defined($result->{entSensorValue}) ?