Module: check_mk
Branch: master
Commit: 4122c176cbe9f80bee939c21d3f087ebd6d6b166
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4122c176cbe9f8…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Fri Sep 7 12:02:41 2018 +0200
6464 FIX Linux Agent: Fix excluded filesystems in df section
Change-Id: Ib13b37d1ed8fc4a9415e34675b5513d26fd693b8
---
.werks/6464 | 11 +++++++++++
agents/check_mk_agent.linux | 4 ++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.werks/6464 b/.werks/6464
new file mode 100644
index 0000000..fea0e2e
--- /dev/null
+++ b/.werks/6464
@@ -0,0 +1,11 @@
+Title: Linux Agent: Fix excluded filesystems in df section
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1536314453
+
+
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index 5180426..99177ac 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -169,12 +169,12 @@ function section_df()
# The exclusion list is getting a bit of a problem. -l should hide any remote FS but
seems
# to be all but working.
local excludefs="-x smbfs -x cifs -x iso9660 -x udf -x nfsv4 -x nfs -x mvfs -x
zfs -x prl_fs"
- df -PTlk "$excludefs" | sed 1d
+ df -PTlk $excludefs | sed 1d
# df inodes information
echo '<<<df>>>'
echo '[df_inodes_start]'
- df -PTli "$excludefs" | sed 1d
+ df -PTli $excludefs | sed 1d
echo '[df_inodes_end]'
}