#!/bin/ksh # # Author: Todd Barbera # Date: 10/1/05 # Purpose: Check on the status of logical drives in the 3510 # Note: Needs suid or sudo configured since root privs required # . /usr/local/nagios/libexec/utils.sh lds=`/usr/sbin/sccli /dev/rdsk/c7t600C0FF000000000003FDB31AA87EB00d0s2 show logical-drives 2>&1|grep ld|grep -v Good` if [ $? = 1 ]; then echo OK - 3510 logical drive status is good exit $STATE_OK else echo Warning - $lds exit $STATE_WARNING fi