Module: check_mk
Branch: master
Commit: a74fe5db7ca2178c9c341ba4446164a680cf0e27
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a74fe5db7ca217…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Dec 8 17:56:18 2014 +0100
Fix recent error in precompiled Python files for Nagios core
---
modules/check_mk.py | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 3f24123..9b5e8ef 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -3559,17 +3559,17 @@ no_inventory_possible = None
# debug logging
output.write("\n")
- output.write(" l = file(log_dir + \"/crashed-checks.log\",
\"a\")\n")
- output.write(" l.write((\"Exception in precompiled
check:\\n\"\n")
- output.write(" \" Check_MK Version: %s\\n\"\n")
- output.write(" \" Date: %s\\n\"\n")
- output.write(" \" Host: %s\\n\"\n")
- output.write(" \" %s\\n\") % (\n")
- output.write(" check_mk_version,\n")
- output.write(" time.strftime(\"%Y-%d-%m
%H:%M:%S\"),\n")
- output.write(" \"%s\",\n" % hostname)
- output.write(" traceback.format_exc().replace('\\n',
'\\n ')))\n")
- output.write(" l.close()\n")
+ output.write(" l = file(log_dir + \"/crashed-checks.log\",
\"a\")\n")
+ output.write(" l.write((\"Exception in precompiled
check:\\n\"\n")
+ output.write(" \" Check_MK Version: %s\\n\"\n")
+ output.write(" \" Date: %s\\n\"\n")
+ output.write(" \" Host: %s\\n\"\n")
+ output.write(" \" %s\\n\") % (\n")
+ output.write(" check_mk_version,\n")
+ output.write(" time.strftime(\"%Y-%d-%m
%H:%M:%S\"),\n")
+ output.write(" \"%s\",\n" % hostname)
+ output.write(" traceback.format_exc().replace('\\n', '\\n
')))\n")
+ output.write(" l.close()\n")
output.write(" sys.exit(3)\n")
output.close()