mdadm and email warnings
Can anybody point me to information/how-tos that describe, step-by-step, how to configure mdadm to give me warnings about possible problems with my raid arrays? I realize that mdadm can monitor the status of the raids and send me a warning if something looks bad. But I'm fuzzy on how exactly to set this up. Sorry, but the details aren't obvious from any of the manuals or help files.
For instance, I see that I can enter an email address with the flag -m and the address. But do I need to specify a program that will send that email? It looks that way to me. Can I use KDE Mail to do the job? Or do I need to use something that doesn't involve a GUI?
Thanks in advance for the help
Andy Liebman
Quoted 11 lines · [email protected] writes:
Can anybody point me to information/how-tos that describe, step-by-step, how to configure mdadm to give me warnings about possible problems with my raid arrays? I realize that mdadm can monitor the status of the raids and send me a warning if something looks bad. But I'm fuzzy on how exactly to set this up. Sorry, but the details aren't obvious from any of the manuals or help files.
For instance, I see that I can enter an email address with the flag -m and the address. But do I need to specify a program that will send that email? It looks that way to me. Can I use KDE Mail to do the job? Or do I need to use something that doesn't involve a GUI?
I run "mdadm --monitor --scan --daemonise" and have put a mail address in mdadm.conf. Make sure sendmail or something compatible (e.g. postfix) is installed.
Signature · 7 lines
Måns Rullgård [email protected] - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · On Wednesday January 28, [email protected] wrote:
For instance, I see that I can enter an email address with the flag -m and the address. But do I need to specify a program that will send that email? It looks that way to me. Can I use KDE Mail to do the job? Or do I need to use something that doesn't involve a GUI?
No, you don't need to specify a program to send the mail. mdadm already knows to use sendmail.
The --program option is to specify a program that can do other things with alerts from mdadm. e.g. log them, page a sysadmin, send a differently formatted email. etc.
NeilBrown