Module: check_mk
Branch: master
Commit: fbb3b99b68b5b68a35e67ea04c85fe5259efe9d6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fbb3b99b68b5b6…
Author: Florian Heigl <fh(a)mathias-kettner.de>
Date: Thu May 17 12:11:54 2012 +0200
Agent plugins for Veritas Volume Manager (VxVM). Should run on any non-Windows OS.
---
agents/plugins/veritas/vxvm_enclosures | 15 +++++++++++++++
agents/plugins/veritas/vxvm_multipath | 17 +++++++++++++++++
agents/plugins/veritas/vxvm_volumes | 23 +++++++++++++++++++++++
3 files changed, 55 insertions(+), 0 deletions(-)
diff --git a/agents/plugins/veritas/vxvm_enclosures
b/agents/plugins/veritas/vxvm_enclosures
new file mode 100755
index 0000000..18cf6f7
--- /dev/null
+++ b/agents/plugins/veritas/vxvm_enclosures
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# Original Output
+#ENCLR_NAME ENCLR_TYPE ENCLR_SNO STATUS ARRAY_TYPE LUN_COUNT
+#===================================================================================
+#disk Disk DISKS CONNECTED Disk 2
+#emc1 EMC 0002XXXXXXXX CONNECTED A/A 512
+#emc_clariion0 EMC_CLARiiON CK2000XXXXXXXX CONNECTED CLR-A/P 1
+
+# Disk: local disks, or maybe JBOD (then remove the -e ^disk)
+
+if type vxdmpadm > /dev/null ; then
+ echo '<<<vxvm_enclosures>>>'
+ vxdmpadm listenclosure | grep -v -w -e ^disk -e ^ENCLR_NAME -e \^=
+fi
diff --git a/agents/plugins/veritas/vxvm_multipath
b/agents/plugins/veritas/vxvm_multipath
new file mode 100755
index 0000000..e76658d
--- /dev/null
+++ b/agents/plugins/veritas/vxvm_multipath
@@ -0,0 +1,17 @@
+#!/bin/sh
+# Original output
+# c42t4d7 ENABLED(A) - disk2046 emc1 c27 -
+
+# DMPNODENAME ENCLR-NAME STATE[A] PATH-TYPE[M]
+# disk2057 emc1 ENABLED(A) -
+# disk3119 emc_clariion0 ENABLED SECONDARY
+
+
+
+
+if type vxdmpadm ; then
+ echo '<<<vxvm_multipath>>>'
+ # dmpnode storagedevice state attribute
+ vxdmpadm getsubpaths | grep -vw DMPNODENAME | awk '{print $4" "$5"
"$2" "$3}'
+
+fi
diff --git a/agents/plugins/veritas/vxvm_volumes b/agents/plugins/veritas/vxvm_volumes
new file mode 100755
index 0000000..573c1a8
--- /dev/null
+++ b/agents/plugins/veritas/vxvm_volumes
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+
+if type vxdg > /dev/null; then
+ # Get a list of the in-use disk groups.
+ # Deported or otherwise inactive needs no performance monitoring
+ DGS=$(vxdg list | grep enabled | awk '{print $1}')
+ if [ "X${DGS}" != "X" ]; then
+ echo '<<<vxvm_volumes>>>'
+ for DG in $DGS ; do
+ vxprint -g $DG -v -F"%dgname %name %state"
+ # Options: Kilobytes, per Volume
+ vxstat -u k -v -g $DG | egrep -v '(OPERATIONS|TYP)' | sed
"s/^vol/$DG/"
+ done
+ fi
+fi
+
+
+# BASIC Output from vxstat
+# OPERATIONS BLOCKS AVG TIME(ms)
+# TYP NAME READ WRITE READ WRITE READ WRITE
+# vol homevol 28987 56780 30873k 28516k 0.78 30.22
+# (for vxprint... see manual)