Documentation
VolumeAge-Check
Checks the volumes age.
Usage
$ check_netapp_pro.pl VolumeAge -H <host> [-I <name> | -X <name>] [-w ... -c ... ] [--help] [...]
Description
This plugin checks the age of the volumes. The age is calculated as the difference between the volume creation-time and now.
Thresholds
Thresholds (--warning
, --critical
) may be set in days (d) or week (w).
(Lower values like (h)our, (min)ute or (s)econd are possible as well.)
Example: For a threshold of 1 year you can write either --critical=365d
or
--critical=52w
. Month and year are not supported for thresholds, since their
duration can vary (28-31 days per month, leap-years).
By omitting the thresholds or setting them to 0 the threshold-calculation is switched off
and the plugin will terminate with UNKNOWN. To terminate with OK while the thresholds are
still switched off, set the additional switch --no_thresholds_are_ok
.
To check for exceptionally young volumes the comparison-logic can be inverted with
--comparison=lt
(less-than).
Consider using -v
for inspection, if you are not satisfied with the result.
Simple Examples
Get the volume-age of all volumes for trending (no thresholds=no alarm).
Same as above but exit OK instead of UNKNOWN.
Check the volume-age of all volumes. Warn if a volume is older than 1 year and critical if older than 2 years.
Advanced Examples
Hint: The input for advanced examples is shortend. Replace the '...' below with ‑H <your filers ip or host-name>
Check the volume-age of all volumes. Warn if a volume is younger than 1 day. The critical threshold is practically switched off by setting it to 1 second.
Do not check vol0 for its age. Since --exclude expects a regex, it must be anchored with $
- so that e.g. vol01 is not excluded as well.