#!/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
How to check the RAID status and email the result
How to check the RAID status and email the result
Check the raid status and send the report in a email
Arun
WebhostingDevelopment.com
WebhostingDevelopment.com