Module: check_mk
Branch: master
Commit: f85e0d90366cb5a3d27f7f860b5ed81c1c538b97
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f85e0d90366cb5…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Oct 27 13:48:29 2014 +0100
#1424 mknotifyd: now able to check if its still listening for telegrams
The mknotifyd server is now able to handle heartbeat telegrams.<br>
Just send an empty pickled python object to the server, like "N." (a pickled
None)<br>
The mknotifyd will answer with an "OK".<br>
You can monitor this behaviour with the active check "Check connecting to a TCP
port".
---
.werks/1424 | 12 ++++++++++++
ChangeLog | 1 +
doc/treasures/mknotifyd | 9 +++++----
3 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/.werks/1424 b/.werks/1424
new file mode 100644
index 0000000..210763e
--- /dev/null
+++ b/.werks/1424
@@ -0,0 +1,12 @@
+Title: mknotifyd: now able to check if its still listening for telegrams
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.5i6
+Date: 1414413785
+Class: feature
+
+The mknotifyd server is now able to handle heartbeat telegrams.<br>
+Just send an empty pickled python object to the server, like "N." (a pickled
None)<br>
+The mknotifyd will answer with an "OK".<br>
+You can monitor this behaviour with the active check "Check connecting to a TCP
port".
diff --git a/ChangeLog b/ChangeLog
index 29f7ac0..82f1df8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -79,6 +79,7 @@
* 1447 domino_transactions: new check to monitor the number of transactions per
minute on Lotus Domino servers
* 1190 statgrab_cpu: Check can now handle parameters
* 1191 Linux agent now also sends information about tmpfs...
+ * 1424 mknotifyd: now able to check if its still listening for telegrams...
* 1051 FIX: tcp_conn_stats: fix missing performance data...
* 1142 FIX: winperf_ts_sessions: fix computation, check has never really worked
* 1090 FIX: zfsget: fixed exception which happened on incomplete zfs entries
diff --git a/doc/treasures/mknotifyd b/doc/treasures/mknotifyd
index 0a793d8..488af11 100755
--- a/doc/treasures/mknotifyd
+++ b/doc/treasures/mknotifyd
@@ -260,10 +260,11 @@ class TcpServer:
try:
content = pickle.loads(client_data)
- if not os.path.exists(g_spool_dir):
- os.makedirs(g_spool_dir)
- spoolfile = "%s/%s" % (g_spool_dir, uuid.uuid1())
- file(spoolfile,"w").write(pprint.pformat(content))
+ if content:
+ if not os.path.exists(g_spool_dir):
+ os.makedirs(g_spool_dir)
+ spoolfile = "%s/%s" % (g_spool_dir, uuid.uuid1())
+ file(spoolfile,"w").write(pprint.pformat(content))
verbose("client data processed - sending OK", 2)
client_socket.send("OK")