Home Directory Plugins Hardware Storage Systems RAID Controllers NagiosPlugin-HPSmartArrayController

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

NagiosPlugin-HPSmartArrayController

Current Version
1.0
Last Release Date
2013-03-27
Compatible With
  • Nagios XI
Owner
License
GPL
Hits
39476
Files:
FileDescription
check_smart_array.rbcheck_smart_array.rb
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!
A small Ruby plugin for Nagios for Smart Array controllers (all models supported by hpacucli)
NagiosPlugin-HPSmartArrayController
A small Ruby plugin for Nagios for Smart Array controllers (all models supported by hpacucli)

USAGE
show help
[root@myserver plugins]# ./check_smart_array -h Usage: check_smart_array --slot SLOT_NUMBER

status OK
[root@myserver plugins]# ./check_smart_array --slot 4 Smart Array OK

Check of array status
Simple check inside this output: root@myserver plugins]# hpacucli ctrl slot=4 show config | head

Smart Array P812 in Slot 4 (sn: xxxxxxxxxxxxxxx)

array A (SAS, Unused Space: 0 MB)


logicaldrive 1 (136.7 GB, RAID 1, OK)

physicaldrive 6I:1:1 (port 6I:box 1:bay 1, SAS, 146 GB, OK)
physicaldrive 6I:1:2 (port 6I:box 1:bay 2, SAS, 146 GB, OK)
logicaldrive,physicaldrive should be OK for an exit status OK

Check of controller status
[root@myserver plugins]# hpacucli ctrl slot=4 show status

Smart Array P812 in Slot 4
Controller Status: OK
Cache Status: OK
Battery/Capacitor Status: OK
for exit status OK all should be OK

check configuration
Check command*
Command view => check_nrpe
$ARG1$ check_smart_array
$ARG2$ -a '-s 4'
nrpe.cfg
### Check clustat for HP Smart Array Controller ###
command[check_smart_array]=sudo /usr/local/nagios/plugins/check_smart_array.rb $ARG1$ $ARG2$
SUDO
nagios ALL=NOPASSWD:/usr/local/nagios/plugins/check_smart_array.rb