NetApp Monitoring

Documentation

VolumeState-Check

Checks the volumes state - find offline-volumes.

Usage

$ check_netapp_pro.pl VolumeState -H <host> [-I <name> | -X <name>] [--help] [...]

Description

This plugin checks a volume state of one, several or all volumes. What is considered to be ok is set by a switch.

Possible values of a volume state:

'online',
'restricted',
'offline',
'mixed'

One of the use-cases of this check is to quickly find offline-volumes, which are just a left-over from some tests or administrative changes, which take up place in the aggregate and should better get deleted.

Consider using -v for inspection, if you are not satisfied with the result.

Simple Examples

[S1] ./check_netapp_pro.pl VolumeState -H filer

Check the volume-state of all volumes using the default for OK (online).

[S2] ./check_netapp_pro.pl VolumeState -H filer --ok_state='^(online|mixed)$'

Check the volume-state of all volumes. Alarm if the status is neither online nor mixed.


NETAPP_PRO VOLUMESTATE OK - 3 volumes checked.
vfiler0 lun1: online
vfiler0 vol0: online
vfiler1 vol1: online
[S3] ./check_netapp_pro.pl VolumeState -H filer --include=vol0$

Check the volume-state of vol0.


NETAPP_PRO VOLUMESTATE OK - 1 volume checked.
vfiler0 vol0: online
[S4] ./check_netapp_pro.pl VolumeState -H filer --exclude=vol0$

Check the volume-state of all volumes except of vol0.


NETAPP_PRO VOLUMESTATE OK - 2 volumes checked.
vfiler0 lun1: online
vfiler1 vol1: online

Advanced Examples

Hint: The input for advanced examples is shortend. Replace the '...' below with ‑H <your filers ip or host-name>

[A1] ./check_netapp_pro.pl VolumeState ... --exclude=^vfiler0\.

Check the volume-state of all volumes but ignore the node 'vfiler0'.


NETAPP_PRO VOLUMESTATE OK - 1 volume checked.
vfiler1.vol1: online
[A2] ./check_netapp_pro.pl VolumeState ... --include=^vfiler1\.

Check the volume-state of all volumes on the node 'vfiler1'.


NETAPP_PRO VOLUMESTATE OK - 1 volume checked.
vfiler1.vol1: online
[A3] ./check_netapp_pro.pl VolumeState ... --exclude=^mc

Exclude any node which name begins with 'mc'.

[A4] ./check_netapp_pro.pl VolumeState ... --include=^svm --include=^bak

Check the volume-state on any node which name begins with 'svm' or 'bak'.

[A5] ./check_netapp_pro.pl VolumeState ... --include=^(svm|bak)

Same as above: Check the volume-state on any node which name begins with 'svm' or 'bak'.

© Copyright 2009-2023 Ingo Lantschner • Phone: +43-664-143 84 18 • contact@netapp-monitoring.info • en/help/VolumeState.html • last update: 2023-03-07