Using ocf:heartbeat:clustermon starts up a daemonized crm_mon with the follwing command:
/usr/sbin/crm_mon -p /tmp/ClusterMon_ClusterMon.pid -d -i 15 -h /data/apache/www/html/crm_mon.html And it does, indeed write my crm_mon.html file. It does not seem to run on the interval at all. It runs one time and then just sits. If I do a 'crm resource restart ClusterMon', it does run and update the crm_mon.html file, so it looks like interval is broken? Anyone else know what I have done wrong? Here is my crm 'code': primitive ClusterMon ocf:heartbeat:ClusterMon \ op monitor interval="10" timeout="20" depth="0" \ params htmlfile="/data/apache/www/html/crm_mon.html" \ meta target-role="Started" PHIL HUNT AMS Consultant phil.h...@orionhealth.com P: +1 857 488 4749 M: +1 508 654 7371 S: philhu0724 www.orionhealth.com ----- Original Message ----- From: "Andrew Beekhof" <and...@beekhof.net> To: "The Pacemaker cluster resource manager" <pacemaker@oss.clusterlabs.org> Sent: Wednesday, April 27, 2011 7:25:21 AM GMT -05:00 US/Canada Eastern Subject: Re: [Pacemaker] [PATCH]Bug 2567 - crm resource migrate should support an optional "role" parameter On Sun, Apr 24, 2011 at 4:31 PM, Holger Teutsch <holger.teut...@web.de> wrote: > On Mon, 2011-04-11 at 20:50 +0200, Andrew Beekhof wrote: >> why? >> CMD_ERR("Resource %s not moved:" >> " specifying --master is not supported for >> --move-from\n", rsc_id); >> > it did not look sensible to me but I can't recall the exact reasons 8-) > It's now implemented. >> also the legacy handling is a little off - do a make install and run >> tools/regression.sh and you'll see what i mean. > > Remaining diffs seem to be not related to my changes. Unlikely I'm afraid. We run the regression tests after every commit and complain loudly if they fail. What is the regression test output? > >> other than that the crm_resource part looks pretty good. >> can you add some regression testcases in tools/ too please? >> > Will add them once the code is in the repo. > > Latest diffs are attached. > > -holger > > > _______________________________________________ > 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker > > _______________________________________________ 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker _______________________________________________ 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker