I created a ping check on pacemaker, like so:
pcs resource create ping ocf:pacemaker:ping dampen=5s multiplier=1000 host_list=127.0.0.1 clone
Used something other than 127.0.0.1 of course.
Here's the source code: https://github.com/ClusterLabs/pacemaker/blob/master/extra/resources/ping
The ping check foresees an rc code of 0, 1, and any other.
Wanting to see warning and errors, I enabled debug:
pcs resource update ping debug=1
However, instead of logging to /var/log/pacemaker.log
, these messages are logged to /var/log/syslog
.
Articles like this are just descriptors: https://support.sciencelogic.com/s/article/3961
And this is outdated: http://www.beekhof.net/blog/2013/pacemaker-logging
There doesn't seem to be a way to set this. What am I missing?
EDIT: Most guides I'm finding on this assume CentOs.
On Ubuntu, it seems the pacemaker sysconfig it located here:/etc/default/pacemaker