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?