[Linux-cluster] ocf_log

C. Handel christoph at macht-blau.org
Wed Mar 31 09:32:15 UTC 2010


  Hi List,

i'm writing a custom resource agent. In the resource agent i try to
use the ocf_log funtions but they don't work as expected. When i run
the rgmanager in the foreground (clurgmgrd -df) i get all the message
i want. When running as a normal daemon i can't find my log entries.

The agent goes something like this

#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin
. $(dirname $0)/ocf-shellfuncs

status() {
   ocf_log debug "status has been called (ocf_log)"
   logger -p local4.debug "status has been called (logger)"
}


the cluster.conf part

<rm log_level="7" log_facility="local4">
...


running in foreground i get both (ocf and logger) debug messages.
Running as a daemon i can find debug messages send by logger but no
messages send via ocf_log. The IP Resource agent (part of the same
service) shows up in the logfile.

Any Hints?

Greetings
   Christoph




More information about the Linux-cluster mailing list