Module: check_mk
Branch: master
Commit: c9abe5f058be2af20024a4fceaa2c2fc4772d686
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c9abe5f058be2a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon May 22 10:44:05 2017 +0200
4732 FIX systemd: Don't kill child processes of the agent
When running the Check_MK agent via systemd the asynchronous executed
agent plugins and real time checks were not working correctly since the
systemd was terminating all child processes after the agent finished.
The systemd configuration has now been changed to let the child processes
be alive after the agent exited.
Change-Id: Ieb4a3fda3b147f014d34033df15c3cd5c475b3d4
---
.werks/4732 | 16 ++++++++++++++++
agents/cfg_examples/systemd/check_mk@.service | 1 +
2 files changed, 17 insertions(+)
diff --git a/.werks/4732 b/.werks/4732
new file mode 100644
index 0000000..46e8cd7
--- /dev/null
+++ b/.werks/4732
@@ -0,0 +1,16 @@
+Title: systemd: Don't kill child processes of the agent
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1495442408
+
+When running the Check_MK agent via systemd the asynchronous executed
+agent plugins and real time checks were not working correctly since the
+systemd was terminating all child processes after the agent finished.
+
+The systemd configuration has now been changed to let the child processes
+be alive after the agent exited.
diff --git a/agents/cfg_examples/systemd/check_mk@.service
b/agents/cfg_examples/systemd/check_mk@.service
index 43c5bb8..a721813 100644
--- a/agents/cfg_examples/systemd/check_mk@.service
+++ b/agents/cfg_examples/systemd/check_mk@.service
@@ -4,6 +4,7 @@ Description=Check_MK
[Service]
ExecStart=/usr/bin/check_mk_agent
+KillMode=process
User=root
Group=root