Module: check_mk
Branch: master
Commit: 255d0856e59b99faf1c85f9e5d89f2ba47cbbdcc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=255d0856e59b99…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Wed Apr 6 10:40:52 2016 +0200
ewon: fixed crash if levels weren't configured
---
checks/ewon | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/checks/ewon b/checks/ewon
index 5ca0b03..9d4aab9 100644
--- a/checks/ewon
+++ b/checks/ewon
@@ -227,7 +227,8 @@ def check_ewon(item, params, parsed):
else:
return 0, "Configured for %s" % params["device"]
if params["device"]:
- return globals()["check_%s" % params["device"]](item,
params[params["device"]], parsed)
+ return globals()["check_%s" % params["device"]](item,
params.get(params["device"], {}),
+ parsed)
check_info["ewon"] = {