centreon-plugins icon indicating copy to clipboard operation
centreon-plugins copied to clipboard

network::cisco::standard::snmp::plugin 'environment' mode bugs

Open zerocarbthirty opened this issue 2 years ago • 9 comments

Hello,

We have been testing network::cisco::standard::snmp::plugin environment mode and we have a couple of bugs.

Bug 1: We noticed that if we've disabled power to a line card in the configuration that the plugin doesn't seem to differentiate between it being intentionally disabled and it being 'missing/broken'. i.e.: (config)#no power enable module 7 %Power admin state updated Bug 2: The plugin thinks that WS-X6748-GE-TX CEF720 48 port 10/100/1000mb Ethernet Rev. 2.9/8000 is a power supply rather than a line card (this is cosmetic) Bug 3: The plugin doesn't mention which slot/module (it happens to be slot 7 in this example) (also cosmetic)

Output from plugin (it actually raises two different alerts for module 7):

CRITICAL: Module 'WS-X6748-GE-TX CEF720 48 port 10/100/1000mb Ethernet Rev. 2.9/8000' status is poweredDown WARNING: Power supply 'WS-X6748-GE-TX CEF720 48 port 10/100/1000mb Ethernet Rev. 2.9/8000' status is offEnvOther

This is an old switch we are testing with.

zerocarbthirty avatar Jul 19 '22 15:07 zerocarbthirty

Could you provide the full snmpwalk of your equipment ?

garnier-quentin avatar Jul 27 '22 12:07 garnier-quentin

Even though I'll scrub the routing table etc from it is there an email you'd like me to send it to or do you want me to just dump it here public?

zerocarbthirty avatar Jul 28 '22 14:07 zerocarbthirty

Also what specific MIB or OID(s) are you interested in? this is way too much data.

zerocarbthirty avatar Jul 28 '22 15:07 zerocarbthirty

I don't want to filter. You can sent it by email.

garnier-quentin avatar Jul 28 '22 15:07 garnier-quentin

Okay well for obvious reasons I had to delete about 100,000 lines of text from the output. It would probably be easier if you just told me what the environment mode is actually looking at.

zerocarbthirty avatar Jul 28 '22 15:07 zerocarbthirty

I don't really know exactly which OIDs i'll use. Have you tried the option --use-physical-name ? But you can provide: .1.3.6.1.2.1.47.1.1.1.1 .1.3.6.1.4.1.9.9.117.1.2.1.1.2 .1.3.6.1.4.1.9.9.13.1.5.1 .1.3.6.1.4.1.9.9.117.1.1.2.1.2

garnier-quentin avatar Jul 28 '22 15:07 garnier-quentin

Finally, where would you like the output sent?

zerocarbthirty avatar Jul 28 '22 16:07 zerocarbthirty

By email.

garnier-quentin avatar Jul 28 '22 16:07 garnier-quentin

You should use following option: --threshold-overload='psu,OK,offEnvOther' --use-physical-name It will be ok

garnier-quentin avatar Aug 01 '22 12:08 garnier-quentin