This is an old revision of the document!


IBM Serveraid tips

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.:

f check_raid.sh

#! /bin/sh

TMP=/tmp/ipssend.serverraid.$$

/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
fi

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
fi

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

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.1243204502.txt.gz · Last modified: 2009/07/27 16:54 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready