lausser / check_nwc_health

nwc = network component. This plugin checks lots of aspects of routers, switches, wlan controllers, firewalls,.....
http://labs.consol.de/nagios/check_nwc_health
GNU General Public License v2.0
146 stars 88 forks source link

cisco: if fru mib is implemented, also check sensors #304

Closed dhoffend closed 1 year ago

dhoffend commented 1 year ago

I know you won't accept my PR anymore. Well, it would be nice if you could take a look at it.

In this case. IOS-XE on Cisco 4331 supports both. The CISCO-ENTITY-FRU-CONTROL-MIB and the CISCO-ENTITY-SENSOR-MIB mib. The Control Mib only reports the status of the swapable modules like fan try or power supply, but nothing more. When we also query the sensors mib that would give us access to all the others sensors like temperature, fan speed, voltages, watt usages, etc.

Maybe another combination of checking supported env mibs could make sense to avoid code duplication. That's up to you.

Thanks