====== 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 mpt-status ===== 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 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