monitoring SAS drives on a PE2950?

Adam Williams awilliam at mdah.state.ms.us
Thu Oct 9 10:25:44 CDT 2008


Patrick_Boyd at Dell.com wrote:
> OMSA does have SNMP capabilities and a command line. You could write
> scripts for the command line, or just monitor for the SNMP traps.
>   

hacking a script someone posted a long time ago, and running postfix 
with root: awilliam at mdah.state.ms.us in /etc/aliases maybe this script 
will work in /etc/cron.daily

/usr/bin/omreport storage pdisk controller=0|grep State> /tmp/raidstatus

if ! grep -q "State                     : Online" /tmp/raidstatus

then
        echo "Warning: RAID status not optimal:"
        cat /tmp/raidstatus
fi

rm -f /tmp/raidstatus
exit 0



More information about the Linux-PowerEdge mailing list