Module: check_mk
Branch: master
Commit: 5731c98493fb93be5e731739096c620a22c531ba
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5731c98493fb93…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Wed Jun 6 17:11:10 2018 +0200
df: Move responsibility for handling vanished filesystems back to df.include
---
checks/df | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/checks/df b/checks/df
index c1e6fdc..047f4e9 100644
--- a/checks/df
+++ b/checks/df
@@ -234,12 +234,12 @@ def check_df(item, params, parsed):
df_blocks = _filter_docker_filesystems(df_blocks)
volume_and_mp_to_mp = { ("%s %s" %
(volume_info[mp]["volume_name"], mp)) : mp for mp in volume_info }
if "patterns" in params or item in volume_info:
- return df_check_filesystem_list(item, params, df_blocks, df_inodes)
+ mountpoint = item
elif item in volume_and_mp_to_mp:
mountpoint = volume_and_mp_to_mp[item]
- return df_check_filesystem_list(mountpoint, params, df_blocks, df_inodes)
else:
- return 3, "Filesystem not found"
+ mountpoint = item
+ return df_check_filesystem_list(mountpoint, params, df_blocks, df_inodes)
# Always exclude filesystems below dockers local storage area