<p><br>
On Mar 29, 2011 6:12 AM, &quot;Michael Schwartzkopff&quot; &lt;<a href="mailto:misch@clusterbau.com">misch@clusterbau.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; On Tue, Mar 29, 2011 at 3:29 AM, Vadym Chepkov &lt;<a href="mailto:vchepkov@gmail.com">vchepkov@gmail.com</a>&gt; wrote:<br>
&gt; &gt; &gt; On Mar 24, 2011, at 12:46 AM, Rakesh K wrote:<br>
&gt; &gt; &gt;&gt; Hi ALL<br>
&gt; &gt; &gt;&gt; Is there any way to send Email notifications when a resource is failure<br>
&gt; &gt; &gt;&gt; in the cluster frame work.<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; while i was going through the Pacemaker-explained document provided in<br>
&gt; &gt; &gt;&gt; the website <a href="http://www.clusterlabs.org">www.clusterlabs.org</a><br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; There was no content in the chapter 7 --&gt; which is sending email<br>
&gt; &gt; &gt;&gt; notification events.<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; can anybody help me regarding this.<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; for know i am approaching the crm_mon --daemonize --as-html &lt;path ot<br>
&gt; &gt; &gt;&gt; fil&gt; to maintain the status of HA in html file.<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; Is there any other approach for sending email notification.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Last time I checked, crm_mon is not well suited for this purpose.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; crm_mon has the following option<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;       -T, --mail-to=value<br>
&gt; &gt; &gt;              Send  Mail  alerts  to  this  user.    See   also<br>
&gt; &gt; &gt; --mail-from, --mail-host, --mail-prefix<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; But you will end-up with obscene amount of e-mails, I was blocked from<br>
&gt; &gt; &gt; gmail when I tried to use it once :) For one resource failure you will<br>
&gt; &gt; &gt; get 4 e-mails: monitor,stop,start,monitor. Now imagine if it was a most<br>
&gt; &gt; &gt; significant member of a group or worse, node failure...<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; nagios would be better suited for this purpose, but, unfortunately,<br>
&gt; &gt; &gt; crm_mon is broken<br>
&gt; &gt; &gt; (<a href="http://developerbugs.linux-foundation.org/show_bug.cgi?id=2344">http://developerbugs.linux-foundation.org/show_bug.cgi?id=2344</a>) for<br>
&gt; &gt; &gt; quite awhile.<br>
&gt; &gt;<br>
&gt; &gt; The fix is going to have to come from the community, I don&#39;t have any<br>
&gt; &gt; knowledge of nagios<br>
&gt; &gt;<br>
&gt; &gt; &gt; I am yet to find a good monitoring solution for pacemaker, hopefully<br>
&gt; &gt; &gt; somebody had more success and will share.<br>
&gt;<br>
&gt; Use SNMP. It is the standard protocol for monitoring. Add a &quot;extend&quot; line to<br>
&gt; your snmpd.conf to call a script that returns the number of failcounts. You<br>
&gt; can easily monitoring this with every NMS. For nagios use check_snmp.<br>
&gt;</p>
<p>I afraid it won&#39;t be able to tell more then &quot;stuff happened&quot; :(<br>
Would it?</p>
<p>Vadym<br>
</p>