Module: check_mk
Branch: master
Commit: 2241d361f7b4e95dd067f5da757a132239c06309
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2241d361f7b4e9…
Author: Florian Heigl <fh(a)mathias-kettner.de>
Date: Fri May 18 08:23:24 2012 +0200
vxvm_multipath: Make backward compatible with 5.0
---
agents/plugins/veritas/vxvm_multipath | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/agents/plugins/veritas/vxvm_multipath
b/agents/plugins/veritas/vxvm_multipath
index 281747d..7d69991 100755
--- a/agents/plugins/veritas/vxvm_multipath
+++ b/agents/plugins/veritas/vxvm_multipath
@@ -1,6 +1,4 @@
#!/bin/sh
-# Original output
-# c42t4d7 ENABLED(A) - disk2046 emc1 c27 -
# DMPNODENAME ENCLR-NAME STATE[A] PATH-TYPE[M]
# disk2057 emc1 ENABLED(A) -
@@ -12,6 +10,10 @@
if type vxdmpadm >/dev/null; then
echo '<<<vxvm_multipath>>>'
# dmpnode storagedevice state attribute
- vxdmpadm getsubpaths | grep -vw DMPNODENAME | awk '{print $4" "$5"
"$2" "$3}'
-
+ #vxdmpadm getsubpaths| grep -vw DMPNODENAME | awk '{print $4" "$5"
"$2" "$3}'
+ vxdmpadm listenclosure all | \
+ grep -v -w -e ^[dD]isk -e ENCLR_NAME -e ^other_disks -e \^= | \
+ awk '{print $1}' | while read enc ; do vxdmpadm getdmpnode
enclosure=$enc
+ done
+ done
fi