Hewlett-Packard Company Smart Array G6 controllers

# yum install hp-snmp-agents hp-health

Debian

For Debian, HP provides the "Proliant Support Pack" as its own repository for squeeze, but the versions are a little bit outdated.

# vim /etc/apt/sources.list.d/hp.list
 
deb http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/ wheezy/current non-free
 
# wget http://downloads.linux.hp.com/SDR/repo/mcp/GPG-KEY-mcp -O - | apt-key add -
 
# apt-get update
# apt-get install hp-snmp-agents hp-health
# apt-get install hpacucli

Drive and Raid Arrays with hpacucli

Icon
Icon
For a more recent version of hpacucli refer to http://hwraid.le-vert.net/wiki/DebianPackages
# cd /usr/lib/nagios/plugins
# mkdir uname26 ; cd uname26
# wget http://mirror.linux.org.au/linux/kernel/people/ak/uname26/Makefile
# wget http://mirror.linux.org.au/linux/kernel/people/ak/uname26/uname26.c
# make
# cp uname26 /usr/sbin


# /usr/sbin/uname26 hpacucli ctrl slot=11 pd all show status

Wrapper for uname26


# vim /usr/local/bin/hpacucli

#!/bin/bash
/usr/sbin/uname26 /usr/sbin/hpacucli $@

check_hpacucli

# cd /usr/lib/nagios/plugins
# wget "http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=3521&cf_id=30" -O check_hpacucli
# chmod +x check_hpacucli

# apt-get install libnagios-plugin-perl

# vim check_hpacucli
#my $hpacucli = '/usr/sbin/hpacucli';
my $hpacucli = '/usr/local/bin/hpacucli';

# ./check_hpacucli -i
check_hpacucli OK -    array A: OK    physicaldrive 1I:1:1 (port 1I.....

Sudo for the wrapper

# visudo
nagios ALL=(ALL) NOPASSWD: /usr/local/bin/hpacucli 

nrpe

# vim /etc/nagios/nrpe.d/icinga.cfg
 
command[check_raid_all]=/usr/lib/nagios/plugins/check_hpacucli -i
 
# service xinetd restart

icinga

define service {
...
       check_command  check_nrpe_command!check_raid_all
...
}

check_hparray

Plugin

# cd /usr/lib/nagios/plugins
# wget "http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=674&cf_id=24" -O check_hparray
# chmod +x check_hparray
 
# vim /usr/lib/nagios/plugins/check_hparray

#HPACUCLI=/usr/sbin/hpacucli
HPACUCLI=/usr/local/bin/hpacucli

nrpe

# vim /etc/nagios/nrpe.d/icinga.cfg
# raid, disks
command[check_raid1]=/usr/lib/nagios/plugins/check_hparray -s 0
command[check_raid6]=/usr/lib/nagios/plugins/check_hparray -s 11

# service xinetd restart

icinga

define service {
...
       check_command  check_nrpe_command!check_raid1
...
}
 
define service {
...
       check_command  check_nrpe_command!check_raid6
...
}

check_cciss

(warning) doesn't work properly.
Uses hpacucli, and requires uname26 wrapper in Debian, and NRPE running.
http://exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/RAID-Controllers/check_cciss--2D-HP-and-Compaq-Smart-Array-Hardware-status/details

check_raid.pl

(warning) doesn't work properly
From PLD Linux, uses hpacucli and cciss_vol_status plus mpt-status. Call via NRPE.
https://github.com/glensc/nagios-plugin-check_raid
# apt-get install cciss_vol_status mpt-status hpacucli
# cd /usr/lib/nagios/plugins
# wget https://raw.github.com/glensc/nagios-plugin-check_raid/master/check_raid.pl
# chmod +x check_raid.pl

Brak komentarzy:

Prześlij komentarz

LinkWithin-4

Related Posts Plugin for WordPress, Blogger...