centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
312 stars 275 forks source link

[network::cisco::meraki::cloudcontroller::snmp] - Mode device-usage - Cache management #4408

Closed Thibaud-OBSSA closed 1 year ago

Thibaud-OBSSA commented 1 year ago

Hi,

Can you add an option for the mode "device-usage" for the plugin "network::cisco::meraki::cloudcontroller::snmp".

An option "generate-cache-only" would be helpfull. When the Meraki organization is very big. Generating the cache takes very long time and the plugin is killed by centreon-engine.

Adding this option would simplify the generation of the cache outside centreon (crontab).

Regards

garnier-quentin commented 1 year ago

Yes an option could be added

garnier-quentin commented 1 year ago

https://github.com/centreon/centreon-plugins/pull/4443

You can use the following command to create the cache file:

perl centreon_plugins.pl --plugin=apps::protocols::snmp::plugin  --hostname='127.0.0.1' --snmp-port=1611 --snmp-community='cisco_wlc' --snmp-version=2c --verbose --mode=cache --snmpwalk=.1.3.6.1.4.1.29671.1.1.4.1 --snmpwalk=.1.3.6.1.4.1.29671.1.1.5.1 --file=/tmp/meraki_cache.json

And you can use following option:

perl centreon_plugins.pl --plugin=network::cisco::meraki::cloudcontroller::snmp::plugin --mode=device-usage --snmp-cache-file=/tmp/meraki_cache.json