[Pacemaker] Mail notification for fencing action

Dejan Muhamedagic dejanmm at fastmail.fm
Wed Jun 15 16:18:52 UTC 2011


Hi,

On Wed, Jun 15, 2011 at 06:52:21AM -0400, imnotpc wrote:
> On Tuesday, June 14, 2011 07:17:41 Dejan Muhamedagic wrote:
> > Hi,
> > 
> > On Mon, Jun 13, 2011 at 03:30:03PM -0400, imnotpc wrote:
> > > I've created a group containing the primary RA and MailTo as the second
> > > resource. This works as exected and sends an e-mail when the primary
> > > resource stops or starts. I'd like to configure pacemaker to send an
> > > e-mail any time a node goes down regardless of it having any resource is
> > > currently running on it. I found nothing useful on google and I've tried
> > > every configuration I can think of and I can't figure this out. Can the
> > > MailTo resource be configured to do what I want?
> > 
> > ClusterMon perhaps.
> 
> Thanks Dejan, I hadn't tried that. The problem with both of these is that if 
> the node running MailTo or ClusterMon goes down it can't send the e-mail and 
> the resource gets fenced defeating the whole purpose. Cloning ClusterMon 
> worked but sends a blizzard of e-mails from each node every time an event 
> occurs. I think the best answer would be for the DC to handle this sort of 

The DC can also fail. But I guess that you meant that a
membership change should generate a message. I suppose that we
should have something like that with SNMP, but don't know what's
the current status.

> thing. I'm trying to hack together a script that runs from a cron job on each 
> machine, but even if I get that to work it'll be an ugly solution and I'd 
> still get at least one e-mail from each functioning node.

Yes. So, if the node where ClusterMon runs fails, the resource
is going to be moved elsewhere. But it doesn't know where did it
come from and why. Tricky. Perhaps it should be modified to send
email on every start?

Thanks,

Dejan

> Jeff
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker




More information about the Pacemaker mailing list