From 0442a08629168e44e3146aafdac0ff022817cca7 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 28 Jan 2022 14:50:57 +0100 Subject: [PATCH] (plugin) hardware::server::dell::idrac::snmp - add hardware heath name in filter (#3439) --- hardware/server/dell/idrac/snmp/mode/components/health.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/server/dell/idrac/snmp/mode/components/health.pm b/hardware/server/dell/idrac/snmp/mode/components/health.pm index 9f4612c96..29ff6f4a0 100644 --- a/hardware/server/dell/idrac/snmp/mode/components/health.pm +++ b/hardware/server/dell/idrac/snmp/mode/components/health.pm @@ -68,7 +68,7 @@ sub check { next if (!defined($result->{$_})); my $name = $chassis_name . ':' . $mapping_health->{$_}->{label}; - next if ($self->check_filter(section => 'health', instance => $instance)); + next if ($self->check_filter(section => 'health', instance => $instance, name => $name)); $self->{components}->{health}->{total}++; $self->{output}->output_add(