<p>You have to create MailTo resource for each resource or group you would like to be notified, unfortunately.  You can also run crm_mon -1f¦grep -qi fail from either cron or from snmp. It&#39;s not perfect, but better then nothing. I also found check_crm script on nagios exchange, it&#39;s not ideal, but again, since this functionality doesn&#39;t come with pacemaker yet, you would have to invent your own wheel ;)</p>

<p>Cheers,<br>
Vadym</p>
<div class="gmail_quote">On Apr 25, 2011 1:15 AM, &quot;Rakesh K&quot; &lt;<a href="mailto:rakirocker4236@gmail.com">rakirocker4236@gmail.com</a>&gt; wrote:<br type="attribution">&gt; Vadym Chepkov &lt;vchepkov@...&gt; writes:<br>
&gt; <br>&gt; <br>&gt;&gt; You can colocate your resource with a MailTo pseudo resource :<br>&gt;&gt; <br>&gt;&gt; # crm ra meta MailTo<br>&gt;&gt; Notifies recipients by email in the event of resource takeover<br>&gt; (ocf:heartbeat:MailTo)<br>
&gt;&gt; <br>&gt;&gt; Vadym<br>&gt;&gt; <br>&gt;&gt; _______________________________________________<br>&gt;&gt; Pacemaker mailing list: Pacemaker@...<br>&gt;&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;&gt; <br>&gt;&gt; Project Home: <a href="http://www.clusterlabs.org">http://www.clusterlabs.org</a><br>&gt;&gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt;&gt; Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>&gt;&gt; <br>&gt;&gt; <br>&gt; <br>&gt; Hi Vadym <br>
&gt; <br>&gt; thanks for providing the reply. You said ti co-locate the resource with the<br>&gt; MailTo resource which will notify the recipients by email provided in the<br>&gt; configuration. But I had configured 4 resources in two node cluster. for this<br>
&gt; case what would be the best approach ..<br>&gt; <br>&gt; Regards<br>&gt; Rakesh<br>&gt; <br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>&gt; <br>&gt; Project Home: <a href="http://www.clusterlabs.org">http://www.clusterlabs.org</a><br>
&gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>&gt; Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
</div>