Module: check_mk
Branch: master
Commit: 4ae2b475d847644689aad36bf50c3acd7aa6b34a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4ae2b475d84764…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jan 23 16:34:25 2015 +0100
df: added comment for future fix
---
checks/df | 2 ++
1 file changed, 2 insertions(+)
diff --git a/checks/df b/checks/df
index cad0b85..23d4398 100644
--- a/checks/df
+++ b/checks/df
@@ -101,6 +101,8 @@ def check_df(item, params, info):
avail_mb = int(line[4]) / 1024.0
fslist_blocks.append((mountpoint, size_mb, avail_mb))
if df_inodes:
+ # FIXME: if the normal and the inodes section has not the same format
+ # this will crash!
fslist_inodes.append((mountpoint, int(df_inodes[idx][2]),
int(df_inodes[idx][4])))
return df_check_filesystem_list(item, params, fslist_blocks, fslist_inodes)