Section heartbeat_crm is missing in Linux agent output for pacemaker 2

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!

[1] https://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/2.0/html-single/Pacemaker_Administration/index.html#_pacemaker_architecture

Only as answer to your question about “survive agent updates”. Your own script in /usr/lib/check_mk_agent/plugins/ should be good :slight_smile: