Module: check_mk
Branch: master
Commit: 26e647d46087da773a393b54e7ce24223b72ff70
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=26e647d46087da…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jul 2 11:22:41 2013 +0200
CMC: remove binary 0 from check output
---
modules/check_mk_base.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index 17b860d..465aae6 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -1369,7 +1369,7 @@ def submit_check_result(host, servicedesc, result, sa):
def submit_to_core(host, service, state, output):
# Save data for sending it to the Check_MK Micro Core
if monitoring_core == "cmc":
- result = "\t%d\t%s\t%s\n" % (state, service, output)
+ result = "\t%d\t%s\t%s\n" % (state, service,
output.replace("\0", "")) # remove binary 0, CMC does not like it
if opt_keepalive:
global total_check_output
total_check_output += result