mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 23:54:18 +02:00
fix meraki
This commit is contained in:
parent
a581b3d756
commit
efc77d4105
@ -303,6 +303,7 @@ sub manage_selection {
|
|||||||
clients => $result->{devClientCount}};
|
clients => $result->{devClientCount}};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (scalar(keys %{$self->{interface}}) > 0) {
|
||||||
$options{snmp}->load(oids => [$mapping2->{devInterfaceSentBytes}->{oid}, $mapping2->{devInterfaceRecvBytes}->{oid}],
|
$options{snmp}->load(oids => [$mapping2->{devInterfaceSentBytes}->{oid}, $mapping2->{devInterfaceRecvBytes}->{oid}],
|
||||||
instances => [keys %{$self->{interface}}], instance_regexp => '^(.*)$');
|
instances => [keys %{$self->{interface}}], instance_regexp => '^(.*)$');
|
||||||
$snmp_result = $options{snmp}->get_leef(nothing_quit => 1);
|
$snmp_result = $options{snmp}->get_leef(nothing_quit => 1);
|
||||||
@ -312,6 +313,7 @@ sub manage_selection {
|
|||||||
$self->{interface}->{$_}->{in} = $result->{devInterfaceRecvBytes} * 8;
|
$self->{interface}->{$_}->{in} = $result->{devInterfaceRecvBytes} * 8;
|
||||||
$self->{interface}->{$_}->{out} = $result->{devInterfaceSentBytes} * 8;
|
$self->{interface}->{$_}->{out} = $result->{devInterfaceSentBytes} * 8;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$self->{cache_name} = "cisco_meraki_" . $self->{mode} . '_' . $options{snmp}->get_hostname() . '_' . $options{snmp}->get_port() . '_' .
|
$self->{cache_name} = "cisco_meraki_" . $self->{mode} . '_' . $options{snmp}->get_hostname() . '_' . $options{snmp}->get_port() . '_' .
|
||||||
(defined($self->{option_results}->{filter_counters}) ? md5_hex($self->{option_results}->{filter_counters}) : md5_hex('all')) . '_' .
|
(defined($self->{option_results}->{filter_counters}) ? md5_hex($self->{option_results}->{filter_counters}) : md5_hex('all')) . '_' .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user