Method
This article uses cron and the megarc RAID configuration utility to monitor a Linux server with an LSI RAID controller.
E-mail warnings are sent to the administrator via the 'mail' command. If your system doesn't have the mail command, it is sometimes easy to install the 'mailx' package. Otherwise, you can look at this page for a script using the 'sendmail' command instead.
I wrote a quickie script that checks for (the lack of) an error message. I have it running from cron every 10 minutes.
Installing the megarc Utility
Log in as root, then:
cd ~
mkdir megarc
cd megarc
wget -O megarc.zip http://www.lsi.com/DistributionSystem/User/AssetMgr.aspx?asset=49543
unzip megarc.zip
chmod 755 megarc*
Cron
I added this to my /etc/crontab:
# check for RAID array problems every 10 minutes and send out a message
*/10 * * * * root /root/megarc/raidstatus.sh 2>&1
Script
I wrote this script. I just place it in the same directory as megarc.
More Info
| < Prev | Next > |
|---|





