check_cisco_r_and_s_hardware.sh
This plugin uses data provided by the CISCO-ENTITY-SENSOR-MIB, CISCO-ENVMON-MIB, and CISCO-ENTITY-FRU-CONTROL-MIB MIBs to gather information about the health of different Cisco platforms. As not all MIBs or sensor types are supported across all platforms, as much information as possible is gathered and reported on. Here are some example runs:
Nexus 7000 with 14 connected Nexus 2k fabric extenders with no problems:
[user@linux-server ~]$ ./check_cisco_r_and_s_hardware.sh ; echo $? checked 180 sensors, checked 9 modules 0Â Catalyst 6513 with no problems:
[user@linux-server ~]$ ./check_cisco_r_and_s_hardware.sh ; echo $? checked 194 sensors, checked 66 temp, 3 fan, 2 psu sensors, checked 22 modules 0Â Catalyst 3560G with no problems:
[paulusjl@lcfmon01 ~]$ ./check_cisco_r_and_s_hardware.sh ; echo $? checked 1 temp, 1 fan, 1 psu sensors 0 2821 router with an HWIC-1GE-SFP and an WIC-1DSU-T1-V2. This router has a bad fan:
[user@linux-server ~]$ ./check_cisco_r_and_s_hardware.sh ; echo $? Fan 2 is shutdown checked 1 temp, 3 fan, 1 psu sensors 2Â The same 2821 router, this time the script is run with the verbose keyword:
[user@linux-server ~]$ ./check_cisco_r_and_s_hardware.sh verbose This device doesn't support the CISCO-ENTITY-SENSOR-MIB Looking at data from CISCO-ENVMON-MIB chassis reported status of normal and the exit status is now 0 Fan 1 reported status of normal and the exit status is now 0 Fan 2 is shutdown  Fan 2 reported status of shutdown and the exit status is now 2 Fan 3 reported status of normal and the exit status is now 2 Main Power Supply reported status of normal and the exit status is now 2 This device does not support the CISCO-ENTITY-FRU-CONTROL-MIB checked 1 temp, 3 fan, 1 psu sensorsÂ