Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_procurve_loop
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!
To use the script, copy it to the plugin directory for your installation (for example /usr/lib/nagios/plugin), then add the following command definition in commands.cfg:
define command{
command_name check_procurve_loop
command_line $USER1$/check_procurve_loop -H $HOSTADDRESS$ -C $ARG1$
}
Define a service which calls the above command with the snmp community name as its only argument, like so:
define service {
use generic-service
host_name MYSWITCH
service_description Loop protection
check_command check_procurve_loop!public
}
A successful check, one where no loop is found, returns:
OK - No loops detected (24 ports checked)
If a loop is found, for example between ports 8 and 19, the return value is:
CRITICAL - found a loop on the following ports: 8 19 (24 ports checked)
define command{
command_name check_procurve_loop
command_line $USER1$/check_procurve_loop -H $HOSTADDRESS$ -C $ARG1$
}
Define a service which calls the above command with the snmp community name as its only argument, like so:
define service {
use generic-service
host_name MYSWITCH
service_description Loop protection
check_command check_procurve_loop!public
}
A successful check, one where no loop is found, returns:
OK - No loops detected (24 ports checked)
If a loop is found, for example between ports 8 and 19, the return value is:
CRITICAL - found a loop on the following ports: 8 19 (24 ports checked)
Reviews (4)
byJoksimovic, January 14, 2020
Script works no mater which modle of HP switch you have..
One issue that I have is that no mater if the switch is Procurve series or something new it can check only 10 ports even thou switches are 24 or 48 ports...
One issue that I have is that no mater if the switch is Procurve series or something new it can check only 10 ports even thou switches are 24 or 48 ports...
byGldRush98, March 23, 2018
Just tried this out on a new HP Aruba with the latest firmware and it still works. Solid plugin, thanks.
bywsando, November 14, 2014
This plugin does exactly what is says and it does it nicely.