Module: check_mk
Branch: master
Commit: a4bbfc102e3de1ceaca57ee6642d002981b32d5e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a4bbfc102e3de1…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu May 5 14:15:15 2011 +0200
cmk -C with --debug now lets exceptions through
---
modules/check_mk.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 0066b10..a97231f 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -1986,6 +1986,8 @@ def precompile_hostchecks():
try:
precompile_hostcheck(host)
except Exception, e:
+ if opt_debug:
+ raise
sys.stderr.write("Error precompiling checks for host %s: %s\n" %
(host, e))
sys.exit(5)
@@ -2080,6 +2082,7 @@ no_inventory_possible = None
if not path:
raise MKGeneralException("Cannot find plugin for check type %s (missing
file %s/%s)\n" % \
(checktype, checks_dir, checktype))
+
if path not in filenames:
filenames.append(path)