Module: check_mk
Branch: master
Commit: d1d5b538ab0a283139edb0537fecb8853ffe0670
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d1d5b538ab0a28…
Author: Florian Heigl <fh(a)mathias-kettner.de>
Date: Mon Sep 17 17:33:53 2012 +0200
Linux Agent: Add ZFS plugin to standard agent
---
agents/check_mk_agent.linux | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index f7b77b6..26a57c2 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -404,6 +404,16 @@ then
omd status --bare --auto
fi
+
+# Welcome the ZFS check on Linux
+# We do not endorse running ZFS on linux if your vendor doesnt support it ;)
+# check zpool status
+if [ -x /usr/sbin/zpool ]; then
+ echo "<<<zpool_status>>>"
+ /usr/sbin/zpool status -x
+fi
+
+
# Fileinfo-Check: put patterns for files into /etc/check_mk/fileinfo.cfg
if [ -r "$MK_CONFDIR/fileinfo.cfg" ] ; then
echo '<<<fileinfo:sep(124)>>>'