<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Sending the second mail without attachments - the first one with with attachments :)<br><br><div><hr id="stopSpelling">From: michael_furman@hotmail.com<br>To: pacemaker@oss.clusterlabs.org<br>Subject: RE: [Pacemaker] Additional help with ClusterMon<br>Date: Thu, 20 Jun 2013 13:18:04 +0300<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr">Andrew, Thanks for your help!<br>Please find the core files attached (3 from about 100).<br><br>pcs status<br>...<br>Version: 1.1.8-7.el6-394e906<br><br>

<p class="ecxMsoNormal"><span style="color:#1F497D;">Installed:</span></p>

<p class="ecxMsoNormal"><span style="color:#1F497D;">&nbsp; corosync.x86_64
0:1.4.1-15.el6_4.1 <br></span></p><p class="ecxMsoNormal"><span style="color:#1F497D;">&nbsp; pacemaker.x86_64 0:1.1.8-7.el6</span></p>



<p class="ecxMsoNormal"><span style="color:#1F497D;">&nbsp; cman.x86_64
0:3.0.12.1-49.el6</span></p>

<br><br>Problematic configuration:<br><br><p class="ecxMsoNormal"><span style="color:#1F497D;">pcs resource create
ClusterMonScript1 &nbsp;ocf:pacemaker:ClusterMon params user="root"
update="1" extra_options="-E /usr/local/bin/example.sh -e
127.0.0.1" </span></p>

<br>Regarding to my problem: is it possible in Pacemaker to run one command and get the status of the node in the one value?<br>We do not want to parse the output&nbsp; of the command "pcs status".<br><br>Like <br><i>pcs status node node_name</i> that will return <i>online </i>or <i>offline </i>(or <i>standby</i>).<br><br>Thank you for your help!<br>Best regards,<br>&nbsp;&nbsp;&nbsp; Michael<br><br><div>&gt; From: andrew@beekhof.net<br>&gt; Date: Wed, 19 Jun 2013 12:47:54 +1000<br>&gt; To: pacemaker@oss.clusterlabs.org<br>&gt; Subject: Re: [Pacemaker] Additional help with ClusterMon<br>&gt; <br>&gt; <br>&gt; On 18/06/2013, at 11:58 PM, Michael Furman &lt;michael_furman@hotmail.com&gt; wrote:<br>&gt; <br>&gt; &gt; I was able to run the ClusterMon agent.<br>&gt; &gt; <br>&gt; &gt; Couple of comments:<br>&gt; &gt; 1.       When I uses ocf:pacemaker:ClusterMon it crashes a lot with the following core file:<br>&gt; &gt; <br>&gt; &gt; file core.22992<br>&gt; &gt; core.22992: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from '/usr/sbin/crm_mon -p /tmp/ClusterMon_ClusterMon.pid -d -i 0 -E /usr/local/bin/e'<br>&gt; <br>&gt; Can you open that file up in gdb and run:  where<br>&gt; That will tell us why it is crashing.<br>&gt; <br>&gt; Also, what version is this?<br>&gt; <br>&gt; &gt;  <br>&gt; &gt; 2.       I required to use ocf:heartbeat:ClusterMon. I found the way to configure it with pcs:<br>&gt; &gt; pcs resource create ClusterMonScript1  ocf:heartbeat:ClusterMon params user="root" update="30" extra_options="-E /usr/local/bin/example.sh" op monitor on-fail="restart" interval="20"<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; Unfortunately, ClusterMon get only resource oriented event. In addition, it does not get event on the node that become stand-by and get the event only on the node that become master.<br>&gt; <br>&gt; Right, someone would have to implement that.<br>&gt; <br>&gt; &gt; <br>&gt; &gt;  <br>&gt; &gt; I want to do get the following events:<br>&gt; &gt; 1.       On the node that become from active to stand-by the event that tell: “the node become from active to stand-by”<br>&gt; &gt; <br>&gt; &gt; 2.       On node that become from standby to active the event that tell: “the node become from stand-by to active”<br>&gt; &gt; <br>&gt; &gt; Questions:<br>&gt; &gt; <br>&gt; &gt; 1.       How it possible to configure ClusterMon to get such functionality?<br>&gt; &gt; 2.       Is exists other agent that allows me to get events described above?<br>&gt; &gt; Thanks for your help,<br>&gt; &gt; Michael<br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; From: michael_furman@hotmail.com<br>&gt; &gt; To: pacemaker@oss.clusterlabs.org<br>&gt; &gt; Date: Fri, 14 Jun 2013 22:53:55 +0300<br>&gt; &gt; Subject: Re: [Pacemaker] Is it possible to add to add scripts when active / standby nodes are changed?<br>&gt; &gt; <br>&gt; &gt; Thank you for your hint!<br>&gt; &gt; I have found everything I need here:<br>&gt; &gt; http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html-single/Pacemaker_Explained/index.html#idm61451840<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; &gt; From: andrew@beekhof.net<br>&gt; &gt; &gt; Date: Fri, 14 Jun 2013 10:56:36 +1000<br>&gt; &gt; &gt; To: pacemaker@oss.clusterlabs.org<br>&gt; &gt; &gt; Subject: Re: [Pacemaker] Is it possible to add to add scripts when active /        standby nodes are changed?<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; Perhaps check out crm_mon --external-agent<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; On 14/06/2013, at 12:47 AM, Michael Furman &lt;michael_furman@hotmail.com&gt; wrote:<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; Hi all!<br>&gt; &gt; &gt; &gt; I want to execute some actions when active / standby nodes are changed.<br>&gt; &gt; &gt; &gt; I want to do the following:<br>&gt; &gt; &gt; &gt; 1. Send SMTP mail<br>&gt; &gt; &gt; &gt; 2. Add message to syslog<br>&gt; &gt; &gt; &gt; 3. Execute my script<br>&gt; &gt; &gt; &gt; I want to do it in the following cases:<br>&gt; &gt; &gt; &gt; 1. On the node that become from active to standby<br>&gt; &gt; &gt; &gt; (May be some action will not work since something bad happens :) )<br>&gt; &gt; &gt; &gt; 2. On node that become from standby to active<br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; Is it possible to do with Pacemaker 1.1.8?<br>&gt; &gt; &gt; &gt; Thanks for your help!<br>&gt; &gt; &gt; &gt; Michael<br>&gt; &gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; &gt; Pacemaker mailing list: Pacemaker@oss.clusterlabs.org<br>&gt; &gt; &gt; &gt; http://oss.clusterlabs.org/mailman/listinfo/pacemaker<br>&gt; &gt; &gt; &gt; <br>&gt; &gt; &gt; &gt; Project Home: http://www.clusterlabs.org<br>&gt; &gt; &gt; &gt; Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf<br>&gt; &gt; &gt; &gt; Bugs: http://bugs.clusterlabs.org<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; <br>&gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; Pacemaker mailing list: Pacemaker@oss.clusterlabs.org<br>&gt; &gt; &gt; http://oss.clusterlabs.org/mailman/listinfo/pacemaker<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; Project Home: http://www.clusterlabs.org<br>&gt; &gt; &gt; Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf<br>&gt; &gt; &gt; Bugs: http://bugs.clusterlabs.org<br>&gt; &gt; <br>&gt; &gt; _______________________________________________ Pacemaker mailing list: Pacemaker@oss.clusterlabs.orghttp://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<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Pacemaker mailing list: Pacemaker@oss.clusterlabs.org<br>&gt; &gt; http://oss.clusterlabs.org/mailman/listinfo/pacemaker<br>&gt; &gt; <br>&gt; &gt; Project Home: http://www.clusterlabs.org<br>&gt; &gt; Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf<br>&gt; &gt; Bugs: http://bugs.clusterlabs.org<br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; Pacemaker mailing list: Pacemaker@oss.clusterlabs.org<br>&gt; http://oss.clusterlabs.org/mailman/listinfo/pacemaker<br>&gt; <br>&gt; Project Home: http://www.clusterlabs.org<br>&gt; Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf<br>&gt; Bugs: http://bugs.clusterlabs.org<br></div>                                               </div></div>                                               </div></body>
</html>