Module: check_mk
Branch: master
Commit: 6d68cdae6cb8205bb70210fbe021d4b53a4c2741
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6d68cdae6cb820…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Feb 23 14:04:43 2017 +0100
8753 FIX check_mk_agent.solaris: Fixed zfs_arc_cache section
Change-Id: I0687dda488e9ac9fa81994c9bf15b46fb0c0fe3c
---
.werks/8753 | 11 +++++++++++
agents/check_mk_agent.solaris | 3 +--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.werks/8753 b/.werks/8753
new file mode 100644
index 0000000..12dc7ad
--- /dev/null
+++ b/.werks/8753
@@ -0,0 +1,11 @@
+Title: check_mk_agent.solaris: Fixed zfs_arc_cache section
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.4.0b3
+Date: 1487854878
+
+
diff --git a/agents/check_mk_agent.solaris b/agents/check_mk_agent.solaris
index 250d40f..ba871b4 100755
--- a/agents/check_mk_agent.solaris
+++ b/agents/check_mk_agent.solaris
@@ -203,8 +203,7 @@ function get_zfs_arc_cache_data () {
then
echo "::arc" | mdb -k
else
- kstat -p zfs:0:arcstats | sed -e 's/.*arcstats://g' | \
- /usr/gnu/bin/sed -e 's/[ \t][ \t]*/ = /g'
+ kstat -p zfs:0:arcstats | sed -e 's/.*arcstats://g' | awk '{printf
"%s = %s\n", $1, $2;}'
fi
}