[Pacemaker] Additional help with ClusterMon

Michael Furman michael_furman at hotmail.com
Tue Jun 18 09:58:10 EDT 2013



I was able to run the ClusterMon agent.



Couple of comments:

1.      
When I uses ocf:pacemaker:ClusterMon it crashes a lot with the
following core file:



file
core.22992

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'

 

2.      
I required to use ocf:heartbeat:ClusterMon. I found the way to
configure it with pcs:

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"





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.



 

I want to do get the following events:

1.      
On the node that become
from active to stand-by the event that tell: “the node become from active to stand-by”



2.      
On node that become from standby
to active the event that tell: “the node become from stand-by to active”



Questions:



1.      
How it possible to
configure ClusterMon to get such functionality?

2.      
Is exists other agent that
allows me to get events described above?

Thanks for your help,

Michael

 



From: michael_furman at hotmail.com
To: pacemaker at oss.clusterlabs.org
Date: Fri, 14 Jun 2013 22:53:55 +0300
Subject: Re: [Pacemaker] Is it possible to add to add scripts when active / standby nodes are changed?




Thank you for your hint!
I have found everything I need here:
http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html-single/Pacemaker_Explained/index.html#idm61451840


> From: andrew at beekhof.net
> Date: Fri, 14 Jun 2013 10:56:36 +1000
> To: pacemaker at oss.clusterlabs.org
> Subject: Re: [Pacemaker] Is it possible to add to add scripts when active /	standby nodes are changed?
> 
> Perhaps check out crm_mon --external-agent
> 
> On 14/06/2013, at 12:47 AM, Michael Furman <michael_furman at hotmail.com> wrote:
> 
> > Hi all!
> > I want to execute some actions when active / standby nodes are changed.
> > I want to do the following:
> > 1.       Send SMTP mail
> > 2.       Add message to syslog
> > 3.       Execute my script
> > I want to do it in the following cases:
> > 1.       On the node that become from active to standby
> > (May be some action will not work since something bad happens :) )
> > 2.       On node that become from standby to active
> >  
> > Is it possible to do with Pacemaker 1.1.8?
> > Thanks for your help!
> > Michael
> > _______________________________________________
> > Pacemaker mailing list: Pacemaker at 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 at 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 at 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 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130618/31ea86a4/attachment-0003.html>


More information about the Pacemaker mailing list