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

check_hpacucli

Current Version
0.2
Last Release Date
2012-06-11
License
GPL
Hits
78686
Files:
FileDescription
check_hpacuclicheck_hpacucli
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Nagios plugin that checks HP RAID controller status with hpacucli, requires CPAN module Nagios::Plugin & hpacucli to be installed. To work it will need a sudoers line see NOTES in code for details.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see .

Originally written by John Carroll for use with BCNU.
Cannibalized by Phil Garner for Nagios.

This plugin was written for and at the expense of Technophobia Limited and is being made available with their authorization.

Authors: Phil Garner - phil.garner@technophobia.com
John Carroll - john.carroll@technophobia.com

v0.1 06/03/2012
v0.2 11/06/2012 change file opp test on hpacucli
v0.3 12/11/2012 add -w
v0.4 23/11/2013 Fix for 5.14+ depreciations

NOTES: Requires Perl Module Nagios::Plugin & hpacucli to be installed Nagios user will need sudo access - suggest adding line below to sudoers:
nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli

In sudoers if requiretty is on (off state is default) you will also need to add the line below
Defaults:nagios !requiretty

check_hpacucli 0.1 [http://www.technophobia.com]

License - GPL v3 see code for more details

Blurb:
Nagios plugin that checks HP RAID controller status with hpacucli, requires CPAN module Nagios::Plugin & hpacucli to be installed. To work it will need a sudoers line see NOTES in code for details.

Usage: check_hpacucli
--help for help

-?, --usage
Print usage information
-h, --help
Print detailed help screen
-V, --version
Print version information
--extra-opts=[section][@file]
Read options from an ini file. See http://nagiosplugins.org/extra-opts for usage
-i, --informative
Adds information on each check even if OK
-t, --timeout=INTEGER
Seconds before plugin times out (default: 15)


Extra Info:
you will need to install hpacucli
eg. get latest .deb packages:

wget http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/Debian/pool/non-free/hpacucli_8.70-8.0.2-2_amd64.deb
Now install it eg.
dpkg -i hpacucli_8.70-8.0.2-2_amd64.deb

now install the Ngaios::Plugin perl module and sudo if not already there

Edit sudoers and add
nagios ALL=(ALL) NOPASSWD: /usr/sbin/hpacucli

On 3.0.0+ Kernels
At the time of writing hpacucli did not like running on 3+ kernels. To fool it into thinking its on a 2.6 box. Get the uname26.c http://www.google.com/url?sa=t&rct=j&q=uname26&source=web&cd=1&ved=0CCMQFjAA&url=http%3A%2F%2Fmirror.linux.org.au%2Flinux%2Fkernel%2Fpeople%2Fak%2Funame26%2F&ei=T9tYT6bdFNTs8QPPmt2CDw&usg=AFQjCNEUFfIIld04uDhOyijJolGxnQSPiA

compile uname26 and put in /usr/local/bin and check it works
gcc -o uname26 uname26.c
mv uname26 /usr/local/bin
uname26 uname -a
the last command should have returned as if it was a 26 kernel.

If hpacucli doesn't work still then have fun debugging
we found on some servers to get hpacucli to work we needed to load an extra driver.
on signal needed to load the sg modules -> its a generic SCSI driver
modprobe sg