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_hpacucli-diskfailed

Rating
0 votes
Favoured:
0
Current Version
0.1
Last Release Date
2014-02-06
Compatible With
  • Nagios 3.x
Owner
Hits
26733
Files:
FileDescription
check_hpacuclicheck_hpacucli
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!
Bash script to check all disks in RAID arrays managed by hpacucli, it will return critical whenever a disk is in failed or in rebuild mode. I've noticed that other scripts (check_hparray) will return OK, even though a disk has failed, preventing timely notification to ensure redundancy is maintained.
Usage is very simple, it doesn't need parameters, although you can specify verbosity (-v [1-9]) or debug (-d == -v 9) and -h.

It will use hpacucli to list and check all raid controllers and all disks. Any disk which is in failed or rebuild state will show up, it's physical address (slot) listed as well as the serial number of the disk. Any such state will cause CRITICAL to be emitted. WARNING is never emitted.

No problem -> OK

This is the first release of the script, it has been tested on CentOS 6 and an older Suse, it works for me.

Obviously this code is provided without warranty, please read and test the code before installing on your systems!