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_perc6i.sh

Rating
0 votes
Favoured:
0
Hits
98734
Files:
FileDescription
check_perc6i.shshell script
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!
simple script to check if perc6i raid is degraded or has critical or offline disks
This script gets info of a perc6i controller via MegaCli (linux-megacli-2.00.12_1) and if raid is degraded or there are critical or offline physical disks it returns critical or warning, else it returns ok. MegaCli and sudo need to be installed for this scripts to work.
MegaCli does need root privileges, to make this work for the nagios user add
nagios ALL=(ALL) NOPASSWD: /usr/local/libexec/MegaCli
to the sudoers file.

Tested on FreeBSD 7.1 and Nagios 3.03
Use at your own risc!

Limitations:
It only checks for 1-9 degraded raid configurations and 1-9 critical or offline disks
It does not return an unknown state on error of the sudo MegaCli command

A better solution: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2710.html;d=1