mdadm email notification - change the default subject

Posted by Shirker on Server Fault See other posts from Server Fault or by Shirker
Published on 2013-10-19T22:45:49Z Indexed on 2013/10/20 3:57 UTC
Read the original article Hit count: 512

Filed under:

I have entry in my crontab

00 */1 * * * /sbin/mdadm --monitor --scan -1 [email protected]

It works more than perfect, but I need to change the default email template. So instead of subject "mdadm monitoring" it wished to be "mdadm monitoring from «IP ADDRESS»" or like that.

[root@mail ~]# rpm -ql mdadm-3.2.5-4.el6_4.2.x86_64 | grep -v -E '(man|doc)'
/etc/cron.d/raid-check
/etc/rc.d/init.d/mdmonitor
/etc/sysconfig/raid-check
/lib/udev/rules.d/65-md-incremental.rules
/sbin/mdadm
/sbin/mdmon
/usr/sbin/raid-check
/var/run/mdadm

Is it hardcoded or its possible to change?

© Server Fault or respective owner

Related posts about mdadm