Module: check_mk
Branch: master
Commit: 1653901caa4a18e163fed4eeb6e0e921ad5f688f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1653901caa4a18…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 15 16:19:35 2016 +0100
Check man pages: Fixed exception handling in case of broken man pages
---
defaults | 1 +
modules/check_mk.py | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/defaults b/defaults
index f6e7c06..65d91a4 100644
--- a/defaults
+++ b/defaults
@@ -29,3 +29,4 @@ livestatus_unix_socket = 'nagios/live'
web_dir = 'web'
pnp_templates_dir = 'pnp-templates'
doc_dir = 'checkman'
+tmp_dir = 'var/tmp'
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 23247f2..447e697 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -2888,7 +2888,7 @@ def show_check_manual(checkname):
output.flush()
output.close()
except Exception, e:
- print "Invalid check manpage %s: missing %s" % (filename, e)
+ sys.stdout.write("Invalid check manpage %s: %s\n" % (checkname, e))
#.