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

Login

Remember Me

Directory Tree

check_switch_psu

Rating
0 votes
Favoured:
0
Current Version
0.12
Last Release Date
2013-01-29
Compatible With
  • Nagios 2.x
  • Nagios 3.x
License
GPL
Hits
50202
Nagios CSP

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!
check_switch_psu
Check that 2 (or more) PSUs are present and working in a Cisco switch. Usually a removed PSU won't be noticed since there is no error to report (and someone might forget to replace it etc.)
Uses ENTITY-MIB and CISCO-ENTITY-FRU-CONTROL-MIB.
Only bash and snmpwalk or snmpbulkwalk are required.

EXAMPLE OUTPUT

WARNING: All PSUs are present (Nexus 5010 PSU module, 110-208VAC 550w). Status PSU-1:(offDenied) PSU-2:(on).

WARNING: Only one PSU is present.

Unknown: More than 2 PSUs detected. Confused. Aborting.

OK: All PSUs are present (Nexus 5010 PSU module, 110-208VAC 550w). Status PSU-1:(on) PSU-2:(on).

OK: All PSUs are present (6000.00W 220v AC). Status PSU-1:(on) PSU-2:(on) PSU-3:(on).

USAGE

$ ./check_switch_psu -h

check_switch_psu - Switch PSU checker.

Usage: check_switch_psu [-h] [-l] [-n ] [-c SECRET]

-h         :  Display this help text.
-v         :  Display the version of this script.
-l         :  List hardware.
-n    :  Number of PSUs to check for (default is 2).
-C SECRET  :  Community string.

Check that NUM power supplies are working.

Examples

List device hardware info:
    check_switch_psu -l -c secret 1.2.3.4

Check number of PSUs on device:
    check_switch_psu -c secret 1.2.3.4