Module: check_mk
Branch: master
Commit: ae64d644d9e60d75ae27fae4040c16dcf9061652
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ae64d644d9e60d…
Author: Florian Heigl <fh(a)mathias-kettner.de>
Date: Wed Jul 4 17:55:27 2012 +0200
FreeBSD Agent: Output data for multipath checking (No check on the roadmap yet)
---
agents/check_mk_agent.freebsd | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/agents/check_mk_agent.freebsd b/agents/check_mk_agent.freebsd
index 4353320..747f761 100755
--- a/agents/check_mk_agent.freebsd
+++ b/agents/check_mk_agent.freebsd
@@ -154,11 +154,11 @@ echo `date +%s` - `sysctl -n kern.boottime | cut -d' ' -f
4,7 | tr ',' '.' | tr
# Multipathing is supported in FreeBSD by now
-# see "gmultipath" or
#
http://www.mywushublog.com/2010/06/freebsd-and-multipath/
-# it's queried using "gmultipath status" and seems to the 2nd-most
-# straightforward multipath implementation since AIX
-
+if kldstat -v | grep g_multipath > /dev/null ; then
+ echo '<<<freebsd_multipath>>>'
+ gmultipath status | grep -v ^Name
+fi
# Soft-RAID