Module: check_mk
Branch: master
Commit: 43315a4f630745951244b9914f46cf34d3096513
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=43315a4f630745…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jul 2 15:22:48 2013 +0200
Honor --debug within check_levels
---
modules/check_mk_base.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index 465aae6..cd11d07 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -1489,6 +1489,8 @@ def check_levels(value, dsname, params, unit = "", factor
= 1.0, statemarkers=Fa
else:
infotext += "no reference for prediction yet"
except Exception, e:
+ if opt_debug:
+ raise
return 3, "%s" % e, []
if ref_value: