Module: check_mk
Branch: master
Commit: 511deefbebb8f001dee1353e11bfd5f6a6b9b0e2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=511deefbebb8f0…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Wed Aug 29 13:14:59 2018 +0200
6473 zpool: Now also available for linux
The zpool will now be checked also on linux systems.
Change-Id: Ic6f8335e2163b9fbbbdd5c2025f380e4b2cb08ac
---
.werks/6473 | 10 ++++++++++
agents/check_mk_agent.linux | 6 ++++--
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/.werks/6473 b/.werks/6473
new file mode 100644
index 0000000..e94c0d6
--- /dev/null
+++ b/.werks/6473
@@ -0,0 +1,10 @@
+Title: zpool: Now also available for linux
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1535541128
+Class: feature
+
+The zpool will now be checked also on linux systems.
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index 8a1e6b3..5180426 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -839,8 +839,10 @@ fi
# We do not endorse running ZFS on linux if your vendor doesnt support it ;)
# check zpool status
if type zpool >/dev/null; then
- echo "<<<zpool_status>>>"
- zpool status -x
+ echo "<<<zpool_status>>>"
+ zpool status -x
+ echo "<<<zpool>>>"
+ zpool list
fi