On 11 Dec 2013, at 3:45 pm, ESWAR RAO <eswar7...@gmail.com> wrote: > Hi Micheal, > > I am configuring the ClusterMon as below on the 3 node setup: > I am following > http://floriancrouzat.net/2013/01/monitor-a-pacemaker-cluster-with-ocfpacemakerclustermon-andor-external-agent/ > > # 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" > > Entity: line 24: element nvpair: Relax-NG validity error : Type ID doesn't > allow value 'ClusterMon-instance_attributes-/root/monitor.sh'
Looks like crmsh is having trouble parsing your command line. > Entity: line 24: element nvpair: Relax-NG validity error : Element nvpair > failed to validate attributes > Relax-NG validity error : Extra element nvpair in interleave > Entity: line 21: element nvpair: Relax-NG validity error : Element > instance_attributes failed to validate content > Relax-NG validity error : Extra element instance_attributes in interleave > Entity: line 2: element cib: Relax-NG validity error : Element cib failed to > validate content > crm_verify[15283]: 2013/12/10_20:35:45 ERROR: main: CIB did not pass > DTD/schema validation > Errors found during check: config not valid > ERROR: ClusterMon: parameter -e does not exist > ERROR: ClusterMon: parameter 192.168.100.188 does not exist > ERROR: ClusterMon: parameter /root/monitor.sh does not exist > > > Can I write my external agent as sample dummy like : crm_mon -1|grep > "Online\|OFFLINE" > 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. > > Thanks > Eswar > > > > On Tue, Dec 10, 2013 at 1:06 PM, Michael Schwartzkopff <m...@sys4.de> wrote: > Am Dienstag, 10. Dezember 2013, 12:19:25 schrieb ESWAR RAO: > > Hi All, > > > > Can someone please let me know if there is a clean to trigger any script by > > pacemaker if HB on a node has stopped/node failed occurred if I ran > > HB+pacemaker on a 3 node setup?? > > > > Thanks > > Eswar > > > > On Mon, Dec 9, 2013 at 5:16 PM, ESWAR RAO <eswar7...@gmail.com> wrote: > > > Hi All, > > > > > > I have a 3 node ( node1, node2, node3 ) setup on which HB+pacemaker runs. > > > I have resources running on clone mode on node1 and node2. > > > > > > Is there anyway to get a trigger when a node failure occurs i.e., can i > > > trigger any script if the node3 fails (on which no resource runs) ??? > > Yes. run a ocf:pacemaker:ClusterMon resource and read man crm_mon for the > additional options to call a script. > > -- > Mit freundlichen Grüßen, > > Michael Schwartzkopff > > -- > [*] sys4 AG > > http://sys4.de, +49 (89) 30 90 46 64, +49 (162) 165 0044 > Franziskanerstraße 15, 81669 München > > Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 > Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer > Aufsichtsratsvorsitzender: Florian Kirstein > _______________________________________________ > Pacemaker mailing list: Pacemaker@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://bugs.clusterlabs.org > > > _______________________________________________ > Pacemaker mailing list: Pacemaker@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://bugs.clusterlabs.org
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ Pacemaker mailing list: Pacemaker@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://bugs.clusterlabs.org