Module: check_mk
Branch: master
Commit: 0f630d23ccc610592b90bdce07163a50a57c5668
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0f630d23ccc610…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Jan 27 14:07:21 2015 +0100
fixed exception with newly introduced parameter show_levels
---
checks/df.include | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/df.include b/checks/df.include
index 60eab0b..b48a5eb 100644
--- a/checks/df.include
+++ b/checks/df.include
@@ -331,7 +331,7 @@ def df_check_filesystem_single(hostname, mountpoint, size_mb,
avail_mb, reserved
elif used_mb >= warn_mb:
status = max(1, status)
- show_levels = params["show_levels"]
+ show_levels = params.get("show_levels")
if show_levels == "always" or \
(show_levels == "onproblem" and status > 0) or \
(show_levels == "onmagic" and (status > 0 or
levels.get("magic", 1.0) != 1.0)):