<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'>Thank you for your hint!<br>I have found everything I need here:<br><a href="http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html-single/Pacemaker_Explained/index.html#idm61451840" target="_blank">http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html-single/Pacemaker_Explained/index.html#idm61451840</a><br><br><br><div>&gt; From: andrew@beekhof.net<br>&gt; Date: Fri, 14 Jun 2013 10:56:36 +1000<br>&gt; To: pacemaker@oss.clusterlabs.org<br>&gt; Subject: Re: [Pacemaker] Is it possible to add to add scripts when active /        standby nodes are changed?<br>&gt; <br>&gt; Perhaps check out crm_mon --external-agent<br>&gt; <br>&gt; On 14/06/2013, at 12:47 AM, Michael Furman &lt;michael_furman@hotmail.com&gt; wrote:<br>&gt; <br>&gt; &gt; Hi all!<br>&gt; &gt; I want to execute some actions when active / standby nodes are changed.<br>&gt; &gt; I want to do the following:<br>&gt; &gt; 1.       Send SMTP mail<br>&gt; &gt; 2.       Add message to syslog<br>&gt; &gt; 3.       Execute my script<br>&gt; &gt; I want to do it in the following cases:<br>&gt; &gt; 1.       On the node that become from active to standby<br>&gt; &gt; (May be some action will not work since something bad happens :) )<br>&gt; &gt; 2.       On node that become from standby to active<br>&gt; &gt;  <br>&gt; &gt; Is it possible to do with Pacemaker 1.1.8?<br>&gt; &gt; Thanks for your help!<br>&gt; &gt; Michael<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></body>
</html>