Hi Lars, On 01/24/13 04:20, Lars Marowsky-Bree wrote: > On 2013-01-23T11:36:10, David Vossel <dvos...@redhat.com> wrote: > >>> - probe: A resource defined for a resource container is not probed. >>> (We can also add a condition in pengine to just avoid probing a >>> nagios class resource.) >> Yeah, I think the pengine should know to never probe a nagios script >> regardless if it is involved in a container or not. > > I admit I actually like this being handled in the plugin, We are not using any wrapper in the middle. The nagios plugins are directly invoked by lrmd. The plugins don't know anything about "probe".
> and the PE not > having to gain special understanding of various classes. Okay, actually we can do it in lrmd as well. > > And we *could* make "probe" meaningful, slightly: it could stat() the > required binary, for example, and return NOT_INSTALLED if not found? I changed the code to let the probe action invokes "--version" for the plugin, which can cover the cases of NOT_INSTALLED and INSUFFICIENT_PRIV. If the invocation succeeds, returns NOT_RUNNING to crmd. I think this should make sense, right? Regards, Gao,Yan -- Gao,Yan <y...@suse.com> Software Engineer China Server Team, SUSE. _______________________________________________ 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://bugs.clusterlabs.org