Module: check_mk
Branch: master
Commit: 9162b7759bb817f36f0e85763959121295bc8b6b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9162b7759bb817…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Jul 1 13:19:45 2015 +0200
Fixed crashing check helpers in case of non-ASCII check output
---
modules/check_mk.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index faae8de..8b6c55a 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -5353,8 +5353,8 @@ def do_check_keepalive():
g_total_check_output = "%s - Check_MK timed out after %d
seconds\n" % (
core_state_names[status], g_timeout)
- os.write(keepalive_fd, "%03d\n%08d\n%s" %
- (status, len(g_total_check_output), make_utf8(g_total_check_output)))
+ check_output_utf8 = make_utf8(g_total_check_output)
+ os.write(keepalive_fd, "%03d\n%08d\n%s" % (status,
len(check_output_utf8), check_output_utf8))
g_total_check_output = ""
except Exception, e: