IBM Serveraid tips

Monitoring HW raid device (debian way)

 # lspci
 04:01.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 08)

install 'mpt-status'

 apt-get install mpt-status

get load modules/use mpt-status

 mknod /dev/mptctl c 10 220
 modprobe mptctl

Monitoring state of IBM Serveraid raid-set using NAGIOS

'smartctl' does not work for this raid-adapter. One can use the output of the 'ipssend' command from the IBM dumplog program. e.g.:


#! /bin/sh


/usr/bin/sudo /usr/local/bps_monitoring/serveraid/ipssend getconfig 1 al > $TMP

if [ `grep -c "State *: Online" $TMP` -ne 2 ] ; then
	echo CRITICAL one of the disks is not online
	rm -f $TMP
	exit 2

if [ `grep -c "Logical drives/Offline/Critical: 1/0/0" $TMP` -ne 1 ] ; then
	echo CRITICAL logical driver offline/critical
	rm -f $TMP
	exit 2

if [ `grep -c "Defunct disk drive count *: 0" $TMP` -ne 1 ] ; then
	echo CRITICAL one or more defunct drives
	rm -f $TMP
	exit 2

echo OK all fine
rm -f $TMP
exit 0

Please note that you need to add a sudo-line for this to work:

 nagios	ALL=(root) NOPASSWD: /usr/local/serveraid/ipssend
serveraid.txt · Last modified: 2009/07/27 16:54 by
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready