<div dir="ltr"><div><div>Hi Micheal,<br><br></div><div>I am configuring the ClusterMon as below on the 3 node setup:<br></div><div>I am following <a href="http://floriancrouzat.net/2013/01/monitor-a-pacemaker-cluster-with-ocfpacemakerclustermon-andor-external-agent/">http://floriancrouzat.net/2013/01/monitor-a-pacemaker-cluster-with-ocfpacemakerclustermon-andor-external-agent/</a><br>
<br># crm configure primitive ClusterMon ocf:pacemaker:ClusterMon params user="root" update="10" extra_options="-E /root/monitor.sh -e 192.168.100.188" op monitor on-fail="restart" interval="60"<br>
<br>Entity: line 24: element nvpair: Relax-NG validity error : Type ID doesn't allow value 'ClusterMon-instance_attributes-/root/monitor.sh'<br>Entity: line 24: element nvpair: Relax-NG validity error : Element nvpair failed to validate attributes<br>
Relax-NG validity error : Extra element nvpair in interleave<br>Entity: line 21: element nvpair: Relax-NG validity error : Element instance_attributes failed to validate content<br>Relax-NG validity error : Extra element instance_attributes in interleave<br>
Entity: line 2: element cib: Relax-NG validity error : Element cib failed to validate content<br>crm_verify[15283]: 2013/12/10_20:35:45 ERROR: main: CIB did not pass DTD/schema validation<br>Errors found during check: config not valid<br>
ERROR: ClusterMon: parameter -e does not exist<br>ERROR: ClusterMon: parameter 192.168.100.188 does not exist<br>ERROR: ClusterMon: parameter /root/monitor.sh does not exist<br><br><br></div><div>Can I write my external agent as sample dummy like : crm_mon -1|grep "Online\|OFFLINE" <br>
</div><div>My intention is when HB is stopped on any node/node failure occurs the script should be triggered so that I can know OFFLINE nodes.<br><br></div>Thanks<br></div>Eswar<br><br></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Tue, Dec 10, 2013 at 1:06 PM, Michael Schwartzkopff <span dir="ltr"><<a href="mailto:ms@sys4.de" target="_blank">ms@sys4.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Am Dienstag, 10. Dezember 2013, 12:19:25 schrieb ESWAR RAO:<br>
<div><div class="h5">> Hi All,<br>
><br>
> Can someone please let me know if there is a clean to trigger any script by<br>
> pacemaker if HB on a node has stopped/node failed occurred if I ran<br>
> HB+pacemaker on a 3 node setup??<br>
><br>
> Thanks<br>
> Eswar<br>
><br>
> On Mon, Dec 9, 2013 at 5:16 PM, ESWAR RAO <<a href="mailto:eswar7028@gmail.com">eswar7028@gmail.com</a>> wrote:<br>
> > Hi All,<br>
> ><br>
> > I have a 3 node ( node1, node2, node3 ) setup on which HB+pacemaker runs.<br>
> > I have resources running on clone mode on node1 and node2.<br>
> ><br>
> > Is there anyway to get a trigger when a node failure occurs i.e., can i<br>
> > trigger any script if the node3 fails (on which no resource runs) ???<br>
<br>
</div></div>Yes. run a ocf:pacemaker:ClusterMon resource and read man crm_mon for the<br>
additional options to call a script.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Mit freundlichen Grüßen,<br>
<br>
Michael Schwartzkopff<br>
<br>
--<br>
[*] sys4 AG<br>
<br>
<a href="http://sys4.de" target="_blank">http://sys4.de</a>, +49 (89) 30 90 46 64, +49 (162) 165 0044<br>
Franziskanerstraße 15, 81669 München<br>
<br>
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263<br>
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer<br>
Aufsichtsratsvorsitzender: Florian Kirstein</font></span><br>_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br></blockquote></div><br></div>