[Pacemaker] How can stonith-plugins send messages to ha-log?

Dejan Muhamedagic dejanmm at fastmail.fm
Wed Sep 24 14:39:24 UTC 2008


Hi,

On Wed, Sep 24, 2008 at 04:14:03PM +0900, Takenaka Kazuhiro wrote:
> Hi all.
> 
> I looked through stonith-plugins in /usr/lib/stonith/plugins/external
> to find out stonith-plugins' official way to send their messages to
> ha-log, but I couldn't find it.
> 
> If there is a similar function to 'ocf_log' for stonith-plugins,
> I think it must be handy. Or I should simply have my stonith-plugins
> use 'ocf_log'?

Yes.

Though the preferable way would be to have the parent plugin
(external.c) collect the output and send it to the logger, in the
same way the lrmd does with resource agents.

Thanks,

Dejan

> Best regards.
> -- 
> Takenaka Kazuhiro <takenaka.kazuhiro at oss.ntt.co.jp>
> 
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at clusterlabs.org
> http://list.clusterlabs.org/mailman/listinfo/pacemaker




More information about the Pacemaker mailing list