mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 07:34:35 +02:00
change watchguard index tunnels
This commit is contained in:
parent
3b61a0844d
commit
7d2c10c997
@ -140,11 +140,13 @@ sub manage_selection {
|
||||
instance_regexp => '^(.*)$'
|
||||
);
|
||||
$snmp_result = $options{snmp}->get_leef(nothing_quit => 1);
|
||||
# tunnel ID moved... so we use the display
|
||||
foreach (keys %{$self->{tunnel}}) {
|
||||
my $result = $options{snmp}->map_instance(mapping => $mapping2, results => $snmp_result, instance => $_);
|
||||
$result->{wgIpsecTunnelInKbytes} *= 1024 * 8;
|
||||
$result->{wgIpsecTunnelOutKbytes} *= 1024 * 8;
|
||||
$self->{tunnel}->{$_} = { %{$self->{tunnel}->{$_}}, %$result };
|
||||
$self->{tunnel}->{ $self->{tunnel}->{$_}->{display} } = { %{$self->{tunnel}->{$_}}, %$result };
|
||||
delete $self->{tunnel}->{$_};
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user