Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_switch_module
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
Uses ENTITY-MIB and CISCO-ENTITY-FRU-CONTROL-MIB.
Only bash and snmpwalk or snmpbulkwalk are required.
EXAMPLE OUTPUT
CRITICAL: poweredDown-->'10 Gbps Ethernet XL Module'-->'LinecardSlot-10'-->'Nexus7000 C7010 (10 Slot) Chassis'.
OK: 7 modules are ok.
USAGE
$ ./check_switch_module -h
check_switch_module - Switch Module checker.
Usage: check_switch_module [-h] [-l] [-c SECRET]
-h : Display this help text.
-v : Display the version of this script.
-l : List hardware.
-C SECRET : Community string.
Check that modules are in OK state.
Examples
List device hardware info:
check_switch_module -l -C secret 1.2.3.4
Check modules are in OK state:
check_switch_module -C secret 1.2.3.4
Only bash and snmpwalk or snmpbulkwalk are required.
EXAMPLE OUTPUT
CRITICAL: poweredDown-->'10 Gbps Ethernet XL Module'-->'LinecardSlot-10'-->'Nexus7000 C7010 (10 Slot) Chassis'.
OK: 7 modules are ok.
USAGE
$ ./check_switch_module -h
check_switch_module - Switch Module checker.
Usage: check_switch_module [-h] [-l] [-c SECRET]
-h : Display this help text.
-v : Display the version of this script.
-l : List hardware.
-C SECRET : Community string.
Check that modules are in OK state.
Examples
List device hardware info:
check_switch_module -l -C secret 1.2.3.4
Check modules are in OK state:
check_switch_module -C secret 1.2.3.4
Reviews (3)
This Nagios Plug-In is working properly.
===========================
Below is my commands.cfg file.
define command{
command_name check_cisco_module
command_line $USER1$/check_switch_module -C example123 $HOSTADDRESS$
}
===========================
example123 is my community name
===========================
===========================
Below is my cisco.cfg file configuration
define service {
use generic-service
host_name Cisco2960_1
service_description Check Switch Modules
check_command check_cisco_module
check_interval 60
retry_interval 1
}
===========================
That's it.
===========================
Below is my commands.cfg file.
define command{
command_name check_cisco_module
command_line $USER1$/check_switch_module -C example123 $HOSTADDRESS$
}
===========================
example123 is my community name
===========================
===========================
Below is my cisco.cfg file configuration
define service {
use generic-service
host_name Cisco2960_1
service_description Check Switch Modules
check_command check_cisco_module
check_interval 60
retry_interval 1
}
===========================
That's it.
bypacketguy, March 6, 2014
Thanks a lot, i can now monitor my modules!
Looks like its working fine but havent had the change to test it when unplugging a blade.
Looks like its working fine but havent had the change to test it when unplugging a blade.
Very nice plugin.
I am using Nagios Core 3.4.4. I have this plugin checking all of my Cisco 2801 routers.
I am using Nagios Core 3.4.4. I have this plugin checking all of my Cisco 2801 routers.