Module: check_mk
Branch: master
Commit: 19dc509598c0345b2e04de858e15e7988c2578f6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=19dc509598c034…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Jun 9 11:52:30 2017 +0200
4779 FIX check_mk_agent.freebsd, check_mk_agent.solaris: Reduce agent output by excluding
mirror devices
Change-Id: I46189b73c9ccebc7d681da7c279b8fb8adb65173
---
.werks/4779 | 11 +++++++++++
agents/check_mk_agent.freebsd | 2 +-
agents/check_mk_agent.solaris | 2 +-
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.werks/4779 b/.werks/4779
new file mode 100644
index 0000000..8ae30f9
--- /dev/null
+++ b/.werks/4779
@@ -0,0 +1,11 @@
+Title: check_mk_agent.freebsd, check_mk_agent.solaris: Reduce agent output by excluding
mirror devices
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1497001845
+
+
diff --git a/agents/check_mk_agent.freebsd b/agents/check_mk_agent.freebsd
index 97ec4fb..1b9a79b 100755
--- a/agents/check_mk_agent.freebsd
+++ b/agents/check_mk_agent.freebsd
@@ -356,7 +356,7 @@ if type statgrab >/dev/null 2>&1 ; then
statgrab_vars_mem="mem. swap."
statgrab_sections="proc disk page"
- statgrab $statgrab_vars 1> /tmp/statgrab.$$
+ statgrab $statgrab_vars | grep -v md 1> /tmp/statgrab.$$
statgrab $statgrab_vars_mem 1>>/tmp/statgrab.$$
diff --git a/agents/check_mk_agent.solaris b/agents/check_mk_agent.solaris
index a801c3f..b54dbaf 100755
--- a/agents/check_mk_agent.solaris
+++ b/agents/check_mk_agent.solaris
@@ -257,7 +257,7 @@ then
statgrab_sections="$statgrab_sections net"
fi
- statgrab $statgrab_vars 1>/tmp/statgrab.$$ 2>/dev/null
+ statgrab $statgrab_vars | grep -v md 1> /tmp/statgrab.$$
for s in $statgrab_sections
do
echo "<<<statgrab_$s>>>"