mdadm - email alerts
I'm running software RAID with mdadm, and have monitoring setup.
It is working, but is it possible to set it up, so I recieve repeating e-mails, lets say once an hour. Currently it seems to be that it only recieves e-mails when a state changes? Is the only solution, to create an command to execute with cron ? example. Code:
mdadm --monitor /var/run/mdadm/monitor.pid --scan --syslog |
Oh well, already running as cron :)
Code:
cat /etc/cron.daily/mdadm |
Good investigative work LBM.
That looks like it does what you want - yes? You could move that script into /etc/cron.hourly/ and modify it to email you the output if that is not already happening by default. Everything's possible, ianll |
It is mailing me now, since i have my email in /etc/mdadm/mdadm.conf, and yes it does exactly what I want.
I've added this email yesterday, so the emails where first recieved after this. (Which is really the solution to the original problem/question) |
All times are GMT -5. The time now is 09:07 PM. |