If you want to install and configure Raid Array Monitoring on your server then follow the below steps ::
Installation ::
root@server[#] yum install mailx -y root@server[#] wget http://download1.obs.j0ke.net/hardware:/raid/openSUSE_10.3/i586/sas2ircu-5.00.00-1.1.i586.rpm root@server[#] rpm -ivh sas2ircu-5.00.00-1.1.i586.rpm
And once the above RPM gets installed then you can check the Raid Array Status using the below command ::
root@server[#] sas2ircu 0 DISPLAY
Use sas2ircu –help for available options.
Configuration ::
Add the below simple script in the /etc/cron.daily directory so that you can receive daily notification for Raid Array Status.
#!/bin/sh
Email="client's email address"
echo "############# RAID ARRAY STATUS ON `hostname` `date` #############" > /root/raidstatus
sas2ircu 0 DISPLAY >> /root/raidstatus
echo "##############################################################" >> /root/raidstatus
mail -s "RAID Array Status on `hostname` server :: `sas2ircu 0 STATUS | grep state | awk {'print $4'}` " $Email< /root/raidstatus
exit 0
That’s all you are done.
