I have Ubuntu 10.04 and MegaRAID controller. The only tool I have is the notorious MegaCli. I need to be emailed when some disk has failed in the RAID array. How to set that up?
migrated from serverfault.com Apr 26 '11 at 17:11
|
Create script like:
and add it to your crontab: https://help.ubuntu.com/community/CronHowto You also need valid sendmail program on your system, simplest config via ssmtp will be enough thou. |
|||||||||||
|
|
You can get the MegaRAID Storage Manager from LSI, and it can be setup to email you on RAID events (amongst other things, like SNMP). There's no speicifc Ubuntu version of it, but LSI provides a knowledge base article that explains how to get the "Linux" version working; hopfully it'll work for you, or at least get you going. |
||||
|
|
|
I think the Nagios plugin check_raid speaks megacli. You could use it standalone to write your own script. Like all Nagios plugins, it gives you an exit code of 1 if it thinks something is wrong. A cron entry like
should give you a very basic solution. |
|||
|
|