[ClusterLabs] Antw: Re: Antw: Struggling to get "crm_mon -E ... " to do anything

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Mon May 11 13:46:31 UTC 2015


>>> Riley <riley at on.net.nz> schrieb am 11.05.2015 um 12:05 in Nachricht
<55507ECD.7050706 at on.net.nz>:
> Ulrich,
>            well I guess 'man crm_mon' does not tell you very much, but
> the ClusterMon resource uses crm_mon, and chapter 7 of the Pacemaker
> documentation,
> http://clusterlabs.org/doc/en-US/Pacemaker/1.1-crmsh/html/Pacemaker_Explained/ 
> s-notification-external.html,
> documents the CRM_notify_* environment variables.

Actually I'm more confused than before now ;-)

So there is a ClusterMon OCF RA that is started by the cluster, and that monitor starts "crm_mon" to periodically dump the configuration to a HTML file. If all I can get is a text dump of the configuration, it's rather ridiculous.

I fail to see the connection to the argument to option "-E" in the documentation you are referring to, and section 7.3 (The example) really lacks an example how such variables look like (and what to do with them).

Regards,
Ulrich

> 
> (No arguments/parameters are passed to the program that is called via
> it's command line, everything is through the environment variables)
>> ...
>>> I have set up a virtual test environment of three nodes running CentOS
>>> 6.6 and am having trouble getting a "crm_mon -E " script called *at all*
>>> when anything changes in the cluster (resource killed, node killed,
>>> resource moved, etc.).
>> Never heard of that option, but when considering the documentation, I'm not 
> much surprised if it doesn't work as one might expect:
>>        -E, --external-agent=value
>>               A program to run when resource operations take place.
>>
>> This leaves a LOT of room for expectations. ;-)
>>
>> What should be a typical use case? Will the program have any parameters?
>>
> 
> 
> _______________________________________________
> Users mailing list: Users at clusterlabs.org 
> http://clusterlabs.org/mailman/listinfo/users 
> 
> Project Home: http://www.clusterlabs.org 
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf 
> Bugs: http://bugs.clusterlabs.org 








More information about the Users mailing list