Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com


Remember Me

Directory Tree



bymef2, January 27, 2010
Had to add: if ( ! $FC_adm_status ) { next; } after the query for SFC_adm_status. The previous query for ports_number returns the max ports allowed in the table. I do not have blades in all the slots so the table is not fully populated and has holes in it. This causes the $sess->get to fail. It would probably be better to walk the index to this table to reduce the number of queries for non-existent ports.

Other than that it is a very professional script. Opening one connection for multiple queries is much faster than the other bash scripts that restart the snmpwalk command for each query.
bymef2, January 27, 2010
1 of 1 people found this review helpful
I managed to get this working by changing the TYPE query to:
TYPE=$(snmpwalk -v 1 -c $COMMUNITY $HOSTNAME SNMPv2-SMI::mib-2.1.1 | sed "s/.*STRING:(.*)$/1/")

and also removing the option 6) in the case statement. My system does not have all the blades populated so option 6 (absent) was throwing an error.

It also works with the Brocade switch in a HP C7000 blade chassis.