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
Check the volume-state of all volumes using the default for OK (online).
Check the volume-state of all volumes. Alarm if the status is neither online nor mixed.
Check the volume-state of vol0.
Check the volume-state of all volumes except of vol0.
Advanced Examples
Hint: The input for advanced examples is shortend. Replace the '...' below with ‑H <your filers ip or host-name>
Check the volume-state of all volumes but ignore the node 'vfiler0'.
Check the volume-state of all volumes on the node 'vfiler1'.
Exclude any node which name begins with 'mc'.
Check the volume-state on any node which name begins with 'svm' or 'bak'.
Same as above: Check the volume-state on any node which name begins with 'svm' or 'bak'.