Module: check_mk
Branch: master
Commit: 841e386d860d01b2220716c68efb43230bb12d3d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=841e386d860d01…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Sep 3 09:31:28 2018 +0200
6529 FIX df: Fixed inode monitoring
Change-Id: I5b6ec003fc92737891487e96edfe24ca1b7a213b
---
.werks/6529 | 11 +++++++++++
checks/df.include | 4 ++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.werks/6529 b/.werks/6529
new file mode 100644
index 0000000..ea20768
--- /dev/null
+++ b/.werks/6529
@@ -0,0 +1,11 @@
+Title: df: Fixed inode monitoring
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1535959761
+
+
diff --git a/checks/df.include b/checks/df.include
index 9cf5e02..84eb691 100644
--- a/checks/df.include
+++ b/checks/df.include
@@ -301,8 +301,8 @@ def df_check_filesystem_list(item, params, fslist_blocks,
fslist_inodes = None):
return df_check_filesystem_single(mp, blocks_info[mp]["size_mb"],
blocks_info[mp]["avail_mb"],
blocks_info[mp]["reserved_mb"],
-
blocks_info[mp].get("inodes_total", None),
-
blocks_info[mp].get("inodes_avail", None),
+ inodes_info.get(mp,
{}).get("inodes_total", None),
+ inodes_info.get(mp,
{}).get("inodes_avail", None),
params)
else:
return 3, "filesystem not found"