Module: check_mk
Branch: master
Commit: c452ca991d5102056c4041b0647956e8fe7dfa4b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c452ca991d5102…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Mar 23 14:46:24 2016 +0100
3341 FIX df: Ignoring mounted lib*.so.1 volumes (seen on Solaris 10)
---
.werks/3341 | 10 ++++++++++
ChangeLog | 1 +
agents/check_mk_agent.solaris | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/3341 b/.werks/3341
new file mode 100644
index 0000000..0a31035
--- /dev/null
+++ b/.werks/3341
@@ -0,0 +1,10 @@
+Title: df: Ignoring mounted lib*.so.1 volumes (seen on Solaris 10)
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1458740761
+
+
diff --git a/ChangeLog b/ChangeLog
index a2bb2bc..4128b79 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -102,6 +102,7 @@
* 3317 FIX: lnx_bonding: handle bogus output of 1.2.6 agents where >/dev/null is
missing after popd
* 3305 FIX: cmciii.phase: fixed wrong datatype handling
* 3107 FIX: heartbeat_crm: fixed incorrect timezone handling...
+ * 3341 FIX: df: Ignoring mounted lib*.so.1 volumes (seen on Solaris 10)
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/agents/check_mk_agent.solaris b/agents/check_mk_agent.solaris
index cfccfda..038ab04 100755
--- a/agents/check_mk_agent.solaris
+++ b/agents/check_mk_agent.solaris
@@ -160,7 +160,7 @@ fi
echo '<<<df>>>'
for fs in ufs vxfs samfs lofs
do
- df -l -k -F $fs 2>/dev/null | sed 1d | \
+ df -l -k -F $fs 2>/dev/null | sed 1d | grep -v "^[^ ]*/lib/[^ ]*\.so\.1
" | \
while read Filesystem kbytes used avail capacity Mountedon
do
kbytes=$(($used + $avail))