[Pacemaker] How to send email-notification on failure of resource in cluster frame work

Vadym Chepkov vchepkov at gmail.com
Mon Mar 28 21:29:39 EDT 2011

On Mar 24, 2011, at 12:46 AM, Rakesh K wrote:

> Hi ALL
> Is there any way to send Email notifications when a resource is failure in the
> cluster frame work.
> while i was going through the Pacemaker-explained document provided in the
> website www.clusterlabs.org 
> There was no content in the chapter 7 --> which is sending email notification
> events.
> can anybody help me regarding this. 
> for know i am approaching the crm_mon --daemonize --as-html <path ot fil> to
> maintain the status of HA in html file.
> Is there any other approach for sending email notification.

Last time I checked, crm_mon is not well suited for this purpose.

crm_mon has the following option

       -T, --mail-to=value
              Send  Mail  alerts  to  this  user.    See   also   --mail-from,
              --mail-host, --mail-prefix

But you will end-up with obscene amount of e-mails, I was blocked from gmail when I tried to use it once :)
For one resource failure you will get 4 e-mails: monitor,stop,start,monitor. Now imagine if it was a most significant member of a group or worse, node failure...

nagios would be better suited for this purpose, but, unfortunately, crm_mon is broken (http://developerbugs.linux-foundation.org/show_bug.cgi?id=2344) for quite awhile.

I am yet to find a good monitoring solution for pacemaker, hopefully somebody had more success and will share.


More information about the Pacemaker mailing list