Module: check_mk
Branch: master
Commit: 00cb77ae95203eb3843dfedb503354e7cec414df
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=00cb77ae95203e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Dec 20 17:29:28 2013 +0100
FIX Remove test-code, Micro Core only worked once per host
Due to remaining test-code the file <tt>/tmp/dev_null</tt> was created
instead of <tt>/dev/null</tt>. That way only the first site using
Check_MK Micro Core was working. This has been fixed.
---
.werks/438 | 12 ++++++++++++
ChangeLog | 1 +
modules/check_mk.py | 2 +-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/438 b/.werks/438
new file mode 100644
index 0000000..020b460
--- /dev/null
+++ b/.werks/438
@@ -0,0 +1,12 @@
+Title: Remove test-code, Micro Core only worked once per host
+Level: 2
+Component: core
+Class: fix
+State: unknown
+Version: 1.2.5i1
+Date: 1387556838
+Targetversion: future
+
+Due to remaining test-code the file <tt>/tmp/dev_null</tt> was created
+instead of <tt>/dev/null</tt>. That way only the first site using
+Check_MK Micro Core was working. This has been fixed.
diff --git a/ChangeLog b/ChangeLog
index d00d76d..07de03a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
* 0354 FIX: Catch exception when check plugins do not return a state...
* 0398 FIX: Tolerate debug output in check plugins when using CMC...
* 0314 FIX: Fix CMC not executing any Check_MK checks after config reload...
+ * 0438 FIX: Remove test-code, Micro Core only worked once per host...
Checks & Agents:
* 0306 esx_vsphere_counters: added missing ramdisk levels sfcbtickets
diff --git a/modules/check_mk.py b/modules/check_mk.py
index e989a6b..bef79a1 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -5133,7 +5133,7 @@ def do_check_keepalive():
keepalive_fd = opt_keepalive_fd
else:
keepalive_fd = os.dup(1)
- devnull = os.open("/tmp/dev_null", os.O_WRONLY | os.O_CREAT)
+ devnull = os.open("/dev/null", os.O_WRONLY | os.O_CREAT)
os.dup2(devnull, 1)
os.close(devnull)