check_catalyst_fans.pl
This script monitors the fan status of a Cisco catalyst via SNMP.
It requests some data of a catalyst via SNMP to analyze them and notifies you via Nagios. To learn how to enable SNMP in your catalyst’s IOS scroll down.
This script should be called with -s [SWITCHIP]
and -C [COMMUNITYSTRING]
. For more information just run it with -h
.
Tested with different IOS versions and SNMP protocol version 2c. If you want to use a different SNMP protocol version, just modify the Net::SNMP->session(...)
call.
How to enable SNMP in your catalyst's IOS
To allow an server to access the IOS via SNMP you have to create an access list with the IP of your server. Afterwards define the access to the IOS’s SNMP-server with an community string, similar like a passphrase. Here is an example configuration:
For more information just ask one of these search engines out there.
Dependencies
Please consider to take a look at my general setup notes.
Leave a comment
There are multiple options to leave a comment: