NetApp Monitoring

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

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

Get the volume-age of all volumes for trending (no thresholds=no alarm).


NETAPP_PRO VOLUMEAGE UNKNOWN - 6 volumes checked, ATTENTION: 6 volumes are UNKNOWN!
sim91-01.vol0: 961d ~3y (UNKNOWN)
srv1.vol1: 961d ~3y (UNKNOWN)
srv2.vol2: 961d ~3y (UNKNOWN)
srv1.vol11: 961d ~3y (UNKNOWN)
srv1.vol12: 961d ~3y (UNKNOWN)
srv2.vol21: 283d ~9month (UNKNOWN)
| sim91-01.vol0=961d;;;0; srv1.vol1=961d;;;0; srv1.vol11=961d;;;0; srv1.vol12=961d;;;0; srv2.vol2=961d;;;0; srv2.vol21=283d;;;0;
[S2] ./check_netapp_pro.pl VolumeAge -H filer --no_thresholds_are_ok

Same as above but exit OK instead of UNKNOWN.


NETAPP_PRO VOLUMEAGE OK - 6 volumes checked
sim91-01.vol0: 961d ~3y
srv1.vol1: 961d ~3y
srv2.vol2: 961d ~3y
srv1.vol11: 961d ~3y
srv1.vol12: 961d ~3y
srv2.vol21: 283d ~9month
| sim91-01.vol0=961d;;;0; srv1.vol1=961d;;;0; srv1.vol11=961d;;;0; srv1.vol12=961d;;;0; srv2.vol2=961d;;;0; srv2.vol21=283d;;;0;
[S3] ./check_netapp_pro.pl VolumeAge -H filer -w 365d -c 730d

Check the volume-age of all volumes. Warn if a volume is older than 1 year and critical if older than 2 years.


NETAPP_PRO VOLUMEAGE CRITICAL - 4 volumes checked, 3 critical and 1 warning
srv2.vol10: 961d ~3y (CRITICAL)
srv1.vol11: 961d ~3y (CRITICAL)
srv1.vol12: 961d ~3y (CRITICAL)
srv2.vol21: 421d ~1y (WARNING)
| ...

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 VolumeAge ... -w 1d -c 1s --comp=lt

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.


NETAPP_PRO VOLUMEAGE OK - 4 volumes checked
srv2.vol10: 961d ~3y
srv1.vol11: 961d ~3y
srv1.vol12: 961d ~3y
srv2.vol21: 421d ~1y
| ...
[A2] ./check_netapp_pro.pl VolumeAge ... -w 52w -c 104w --exclude=vol0$

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.


NETAPP_PRO VOLUMEAGE CRITICAL - 3 volumes checked, 3 critical and 0 warning
srv1.vol11: 961d ~3y (CRITICAL)
srv1.vol12: 961d ~3y (CRITICAL)
srv2.vol21: 421d ~1y (CRITICAL)
| ...

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