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
311 stars 274 forks source link

enh(tests): new script to shrink and anonymize snmpwalks #5184

Closed omercier closed 1 month ago

omercier commented 2 months ago

Description

New script to shrink and anonymize snmpwalks

REFS: CTOR-863

Type of change

Technical

lucie-dubrunfaut commented 1 month ago

Tested during latest PR and appears to be very functional 👌

lucie-dubrunfaut commented 1 month ago

Currently the script must be executed from centreon-plugins otherwise it returns this kind of error:

Could not open src/centreon/common/cisco/standard/snmp/mode/aaaservers.pm to get OIDs from. at slim_walk.pl line 67.
lucie-dubrunfaut commented 1 month ago

It would also be incredibly perfect if, at the end of the iteration on the modes, it were possible to indicate which modes matched the data in addition to the number of OIDs selected.