Module: check_mk
Branch: master
Commit: d4eb0da7bd448bcb19dfc10cf2f75181c4213bfb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d4eb0da7bd448b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Oct 22 18:43:25 2013 -0400
Fix protocol of --keepalive in case of exception
---
modules/check_mk.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index c372f77..1f9542f 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -5127,8 +5127,9 @@ def do_check_keepalive():
except Exception, e:
if opt_debug:
raise
- sys.stdout.write("UNKNOWN - %s\n3\n" % e)
-
+ total_check_output = "UNKNOWN - %s\n" % e
+ sys.stdout.write("%03d\n%08d\n%s" %
+ (3, len(total_check_output), total_check_output))