mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-24 22:25:02 +02:00
(plugin) network::f5::bigip::snmp - mode pool-status fix no members (#4620)
This commit is contained in:
parent
01b8384283
commit
6f48d96cd3
@ -190,6 +190,7 @@ sub add_members {
|
||||
my $oid_status = $options{map} eq 'new' ? '.1.3.6.1.4.1.3375.2.2.5.6.2.1.5' : '.1.3.6.1.4.1.3375.2.2.5.3.2.1.15';
|
||||
my $snmp_result = $options{snmp}->get_table(oid => $oid_status);
|
||||
|
||||
my $loaded = 0;
|
||||
foreach my $oid (keys %$snmp_result) {
|
||||
$oid =~ /^$oid_status\.(.*)$/;
|
||||
my $instance = $1;
|
||||
@ -202,6 +203,7 @@ sub add_members {
|
||||
|
||||
next if (!defined($self->{pools}->{$poolInstance}));
|
||||
|
||||
$loaded = 1;
|
||||
$options{snmp}->load(
|
||||
oids => [ map($_->{oid}, values(%{$mapping_members->{ $options{map} }})) ],
|
||||
instances => [$instance],
|
||||
@ -216,6 +218,8 @@ sub add_members {
|
||||
};
|
||||
}
|
||||
|
||||
return if ($loaded == 0);
|
||||
|
||||
$snmp_result = $options{snmp}->get_leef();
|
||||
foreach (keys %$snmp_result) {
|
||||
next if (! /^$mapping_members->{ $options{map} }->{state}->{oid}\.(.*)$/);
|
||||
|
Loading…
x
Reference in New Issue
Block a user