Depends on which raid-controller you have. For all LSI/Avago models (incl. those re-branded) you can use command-line tool StorCLI or older MegaCLI (you can find vib/offline-bundle on lsi/avago web). All you need is cron to periodically check raid-arrays and a little shell-scripting...