2 # +------------------------------------------------------------------+
3 # | ____ _ _ __ __ _ __ |
4 # | / ___| |__ ___ ___| | __ | \/ | |/ / |
5 # | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
6 # | | |___| | | | __/ (__| < | | | | . \ |
7 # | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
9 # | Copyright Mathias Kettner 2014 mk@mathias-kettner.de |
10 # +------------------------------------------------------------------+
12 # This file is part of Check_MK.
13 # The official homepage is at http://mathias-kettner.de/check_mk.
15 # check_mk is free software; you can redistribute it and/or modify it
16 # under the terms of the GNU General Public License as published by
17 # the Free Software Foundation in version 2. check_mk is distributed
18 # in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
19 # out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
20 # PARTICULAR PURPOSE. See the GNU General Public License for more de-
21 # tails. You should have received a copy of the GNU General Public
22 # License along with GNU Make; see the file COPYING. If not, write
23 # to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
24 # Boston, MA 02110-1301 USA.
26 # This plugin has been tested on Linux and HPUX.
29 if type vxdmpadm
>/dev
/null
2>&1; then
30 echo '<<<vxvm_enclosures>>>'
31 vxdmpadm listenclosure all |
grep -v -w -e ^
[dD
]isk
-e ^other_disks
-e ^ENCLR_NAME
-e \^
=
32 echo '<<<vxvm_multipath>>>'
33 ENCS
=$
( vxdmpadm listenclosure all |
grep -v -w -e ^
[dD
]isk
-e ENCLR_NAME
-e \^
= |
awk '{print $1}')
35 echo "$ENCS" |
while read enc
; do
36 vxdmpadm getdmpnode enclosure
=$enc |
grep -v -e \^
= -e NAME
40 if type vxdg
>/dev
/null
2>&1; then
41 echo '<<<vxvm_objstatus>>>'
42 # Get a list of the in-use disk groups.
43 DGS
=$
(vxdg list |
grep enabled |
awk '{print $1}')
44 # Deported or otherwise inactive needs no performance monitoring
45 if [ "X${DGS}" != "X" ]; then
47 vxprint
-g $DG -v -q -Q -F "%type %dgname %name %admin_state %kstate"