The Linux-Agent checks for certain sockets or with pgrep for processes with crmd as part of the name of processes and if found fires crm_mon to populate the section <<<heartbeat_crm>>>.
In pacemaker 2 the daemon names have changed[1] and there is no output of heartbeat_crm because of missing process crmd.
Old name New name
- attrd pacemaker-attrd
- cib pacemaker-based
- crmd pacemaker-controld
- lrmd pacemaker-execd
- stonithd pacemaker-fenced
- pacemaker_remoted pacemaker-remoted
The process to check for on my system (Debian Buster with pacemaker 2.0.1) is pacemaker-controld instead of crmd.
As a workaround for me I want to patch the agent. This patch should survive agent updates.
Should I put this patched section as shell script in /usr/lib/check_mk_agent/plugins/ ?
Question to Tribe29:
Would you please patch the Linux agent to check for the existence of pacemaker 1 and 2?
Thank you!