How to check the RAID status and email the result

Post Reply
a24uall
Site Admin
Posts: 166
Joined: Sun Jul 01, 2012 9:07 am

How to check the RAID status and email the result

Post by a24uall »

Check the raid status and send the report in a email
#!/bin/sh
# check raid status and email if not ok
STATUS=`/tw_cli info c0 | grep "RAID"`
OK=`echo "$STATUS" | grep "OK"`
if [ "$STATUS" != "$OK" ]
then
/tw_cli info c0 | mail -s "RAID ERROR ON `hostname`" [email protected]
fi
Arun
WebhostingDevelopment.com
Post Reply

Return to “Miscellaneous”