[Pacemaker] Enable remote monitoring

Gao,Yan ygao at suse.com
Thu Jan 24 07:31:11 EST 2013

Hi Lars,

On 01/24/13 04:20, Lars Marowsky-Bree wrote:
> On 2013-01-23T11:36:10, David Vossel <dvossel at 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?

Gao,Yan <ygao at suse.com>
Software Engineer
China Server Team, SUSE.

More information about the Pacemaker mailing list