LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   help with mdadm --monitor (or some other RAID monitoring) (https://www.linuxquestions.org/questions/linux-newbie-8/help-with-mdadm-monitor-or-some-other-raid-monitoring-477366/)

blahblahblah 08-25-2006 03:24 PM

help with mdadm --monitor (or some other RAID monitoring)
 
Hi all,

I have an Ubuntu installation with some software RAID 1, but otherwise pretty vanilla. Ultimately, I'd like to get something to pop up on the desktop if there is a RAID problem (doesn't have to be pretty, just text is fine). To this end I've tried "mdadm --monitor --program" with a simple shell script. The shell script just prints an appropriately dire message :) and the arguments from mdadm.

The problem: when mdadm first starts it runs the script with DeviceDisappeared for each device even though they're fine, and then just sits there and never reports anything again, even when I mark disks as failed and remove them from the array. This happens whether I use --scan or whether I specify the devices explicitly. I'm not running it in the background, so I know mdadm is alive and hasn't printed any errors.

There was a question like this on LinuxQuestions.org (thread 399521, I can't post URLs yet), but it was never answered. I've read the manpages but I didn't see anything I was doing wrong. I've Googled around a lot but all the examples use --mail and that won't work in my case.

Just when I think I'm not a _complete_ noob, something like this comes along :).

If anyone has any suggestions I'd appreciate it. Thanks.

blahblahblah 08-28-2006 05:13 PM

any takers? :)


All times are GMT -5. The time now is 04:57 PM.