From 67e668cdf8af35c278c19be6b4c01ad3a935e32e Mon Sep 17 00:00:00 2001 From: qgarnier Date: Wed, 5 Oct 2022 13:36:33 +0200 Subject: [PATCH] (plugin) network::f5::bigip::snmp - mode pool-status add disabledbyparent (#3956) --- centreon-plugins/network/f5/bigip/snmp/mode/poolstatus.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/network/f5/bigip/snmp/mode/poolstatus.pm b/centreon-plugins/network/f5/bigip/snmp/mode/poolstatus.pm index 935eb9b76..abcbc6c88 100644 --- a/centreon-plugins/network/f5/bigip/snmp/mode/poolstatus.pm +++ b/centreon-plugins/network/f5/bigip/snmp/mode/poolstatus.pm @@ -228,7 +228,7 @@ sub add_members { my $result = $options{snmp}->map_instance(mapping => $mapping_members->{ $options{map} }, results => $snmp_result, instance => $instance); $result->{reason} = '-' if (!defined($result->{reason}) || $result->{reason} eq ''); - if ($result->{state} ne 'disabled') { + if ($result->{state} !~ /disabled/) { $self->{pools}->{$poolInstance}->{pool_status}->{membersAllDisabled} = 'no'; }