Posts tagged Raid Monitoring Insatallation and Configuration on Linux server

Raid Monitoring Insatallation and Configuration

If you want to install and configure Raid Array Monitoring on your server then follow the below steps ::

Installation ::

 

[email protected][#] yum install mailx -y
[email protected][#] wget http://download1.obs.j0ke.net/hardware:/raid/openSUSE_10.3/i586/sas2ircu-5.00.00-1.1.i586.rpm
[email protected][#] 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 ::

 

 [email protected][#] 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.