Module: check_mk
Branch: master
Commit: 0c110c0c19170d3774a2bc5f277607c1177e3919
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0c110c0c19170d…
Author: Florian Heigl <fh(a)mathias-kettner.de>
Date: Wed May 30 17:48:07 2012 +0200
Agent plugin for tracking VxVM volume stats
---
agents/plugins/veritas/vxvm_objstatus | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/agents/plugins/veritas/vxvm_objstatus
b/agents/plugins/veritas/vxvm_objstatus
new file mode 100755
index 0000000..869e2a3
--- /dev/null
+++ b/agents/plugins/veritas/vxvm_objstatus
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+
+if type vxdg > /dev/null; then
+ echo '<<<vxvm_objstatus>>>'
+ # Get a list of the in-use disk groups.
+ DGS=$(vxdg list | grep enabled | awk '{print $1}')
+ # Deported or otherwise inactive needs no performance monitoring
+ if [ "X${DGS}" != "X" ]; then
+ for DG in $DGS ; do
+ vxprint -g $DG -v -q -Q -F "%type %dgname %name %admin_state
%kstate"
+ done
+ fi
+fi
+
+
+
+# Output examples:
+# A stopped volume
+#v datadg lalavol CLEAN DISABLED
+# An active volume
+#v datadg oravol ACTIVE ENABLE
+# v2 layered volumes on lower level that we might or might not need.
+#v datadg oravol-L01 ACTIVE ENABLED
+#v datadg oravol-L02 ACTIVE ENABLED
+
+
+# Man page
+
+#
https://sort.symantec.com/public/documents/sfha/5.1sp1/solaris/manualpages/…