if [ -f /usr/local/sbin/check_raid ]
then
/usr/local/sbin/check_raid
if [ $? -gt 0 ]
then
echo "Problem with raid on `hostname -s`. Check immediately" | mail singroup@sh03.mojohost.com
fi
fi
if [ -f /usr/local/sbin/check_raid.pl ]
then
/usr/local/sbin/check_raid.pl --cache-fail=OK --resync=OK
if [ $? -gt 0 -a $? -lt 3 ]
then
echo "Problem with raid on `hostname -s`. Check immediately" | mail singroup@sh03.mojohost.com
fi
fi