Module: check_mk
Branch: master
Commit: 881af42dfa328d660542173b825af1fe64009ba9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=881af42dfa328d…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Jan 23 14:58:21 2014 +0100
fixed double escaping of newlines...
---
modules/check_mk_base.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index c4c50a5..7e18d66 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -1285,7 +1285,6 @@ 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
# Replace \n to enable multiline ouput
- output = output.replace('\n', '\\n')
if monitoring_core == "cmc":
output = output.replace("\n", "\x01",
1).replace("\n","\\n")
result = "\t%d\t%s\t%s\n" % (state, service,
output.replace("\0", "")) # remove binary 0, CMC does not like it