I downloaded the file and copied the rpmfile over to the XenServer using scp.
then installed it:
rpm -i i2cli-2.5.0-25.i386.rpm
This installs a CLI command that you can use to view, modify your controller.
I reconfigured the ssmpt.conf file to a working config for me (this is the outgoing mailserver on the XenServer, so it is able to send email out).
Then I created a small Bash script.
NOTE! This is not optimized at ALL. Just meshed it together and saw that it worked :-) Please fork the gist and update it if you improve it. Use it at own risk. I recommend testing everything before you start adding data and servers on the system.
You can see the file here: http://gist.github.com/344939
I added the file to crontab: (crontab -e)
*/30 * * * * /usr/sbin/check_raid.sh
Now you will receive emails every 30 minutes for as long as the RAID is degraded (one of the RAIDS)
In the next blog I will show you how I added the other RAIDS as Server Repositories, because you can not add these from the admin tool, it must be done from console.