Module: check_mk
Branch: master
Commit: e13d544ea0b05ebd0ebc0eb9891ab8b88a80eaa3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e13d544ea0b05e…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed May 9 09:06:33 2018 +0200
6008 FIX df.include: Fixed possibly missing parameter 'Show reserved space'
Change-Id: I606f31ab30780e5a0ca7fe58bbad23f3b7701129
---
.werks/6008 | 10 ++++++++++
checks/df.include | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/6008 b/.werks/6008
new file mode 100644
index 0000000..e1f4dba
--- /dev/null
+++ b/.werks/6008
@@ -0,0 +1,10 @@
+Title: df.include: Fixed possibly missing parameter 'Show reserved space'
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1525849463
+Class: fix
+
+
diff --git a/checks/df.include b/checks/df.include
index 093b867..9cf5e02 100644
--- a/checks/df.include
+++ b/checks/df.include
@@ -356,7 +356,7 @@ def df_check_filesystem_single(mountpoint, size_mb, avail_mb,
reserved_mb, inode
(show_levels == "onmagic" and (status > 0 or
levels.get("magic", 1.0) != 1.0)):
infotext += ", " + levels["levels_text"]
- if reserved_mb > 0 and params["show_reserved"]:
+ if reserved_mb > 0 and params.get("show_reserved"):
reserved_perc = 100.0 * float(reserved_mb) / size_mb
infotext += ", therein reserved for root: %.1f%% (%.2f MB)" %
(reserved_perc, reserved_mb)
perfdata.append(("reserved", reserved_mb))