"No Task Available"

Marcus Bointon marcus at synchromedia.co.uk
Thu Sep 13 17:28:44 CDT 2007


On 13 Sep 2007, at 17:50, Adam C. Mathews wrote:

> Sorry to ask for hand-holding, but am I able to configure emails  
> alerts
> for degraded RAID status?

One simple way:

#!/bin/sh

#Simple RAID status monitor

/usr/sbin/omreport storage vdisk > /tmp/raidstatus

if ! grep -q "Status              : Ok" /tmp/raidstatus
then
         echo "Warning: RAID status not optimal:"
         cat /tmp/raidstatus
fi

rm -f /tmp/raidstatus

exit 0


Drop that into /etc/cron.hourly/raidstatus and if you have put an  
email address in your /etc/crontab, it will email you if there's ever  
a problem with it. It's easy to test - try removing the ! after the  
if and it will warn you that it's working!

Marcus
-- 
Marcus Bointon
Synchromedia Limited: Creators of http://www.smartmessages.net/
UK resellers of info at hand CRM solutions
marcus at synchromedia.co.uk | http://www.synchromedia.co.uk/




More information about the Linux-PowerEdge mailing list