Hi,

running check_mk_agent 1.6.0p8 on Debian 10 with pacemaker 2.0 does not
work. check_mk_agent checks for running crmd which was renamed to
pacemaker-controld. The following patch fixes the issue:

--- /usr/bin/check_mk_agent~    2020-02-18 11:44:18.753585416 +0100
+++ /usr/bin/check_mk_agent     2020-02-18 11:46:26.681794757 +0100
@@ -748,7 +748,7 @@
 # Heartbeat monitoring
 # Different handling for heartbeat clusters with and without CRM
 # for the resource state
-if [ -S /var/run/heartbeat/crm/cib_ro -o -S /var/run/crm/cib_ro ] ||
pgrep crmd >/dev/null 2>&1; then
+if [ -S /var/run/heartbeat/crm/cib_ro -o -S /var/run/crm/cib_ro ] ||
pgrep crmd >/dev/null 2>&1 || pgrep pacemaker-contr >/dev/null 2>&1; then
     echo '<<<heartbeat_crm>>>'
     TZ=UTC crm_mon -1 -r | grep -v ^$ | sed 's/^ //; /^\sResource
Group:/,$ s/^\s//; s/^\s/_/g'
 fi

Regards
Christoph

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
omd-users mailing list
[email protected]
Manage your subscription or unsubscribe
https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/omd-users

Reply via email to