Linux-Heartbeat Email Notification

hi guys

I hope this goes here

Have someone used Linux heartbeat to send email when the Slave server becomes the Master?
I've read I can configure the MailTo under

/etc/ha.d/resource.d

but I really don't know how to do it.
I basically need my primary server to send an email when it becomes inactive and all the activities are manage by the secondary node

thanks a lot

Afaik you have to add following in your /etc/ha.d/haresources:

MailTo::one@some.com,another@bla.org

Sadly I have no chance to test it out but would be interessting, if it just mails everything beginning from debug, info etc. or if it only sends interessting stuff.

thanks a lot zaxxon

looks pretty easy has someone any chance to test it out?

thanks a lot