NetApp Monitoring

Documentation

UnprotectedVolume-Check

Checks for volumes which are not protected by a SnapMirror relation.

Usage

$ check_netapp_pro.pl UnprotectedVolume -H <host> [ ... ] [--help]

Description

This plugin checks all volumes and sends an alarm if one or more do not have a SnapMirror relation.

Volumes which are offline, restricted or unknown, are skipped. You can set --verbose to see which volumes are skipped.

To explicitly exclude one or several volumes you can use the arguments --exclude=<regex> and/or --include=<regex>. Specific vservers can be included or excluded this way, since the vserver's name is prefixed to the instance-name and can be matched using a pattern like --include=^vserv01:. In the same way specific volumes can be excluded, an example for all vol0's --exclude=:vol0$.

Simple Examples

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

Check all volumes on all vservers and alert if at least one without a SnapMirror destination is found.

NETAPP_PRO UNPROTECTEDVOLUME CRITICAL - 7 volumes checked, 6 critical and 0 warning
mycluster-01:vol0: unprotected (CRITICAL)
vserv_a:vol0: unprotected (CRITICAL)
vserv_b:vol0: unprotected (CRITICAL)
vserv_b:vol1: unprotected (CRITICAL)
vserv_b:vol1_mirror: unprotected (CRITICAL)
vserv_b:vol2: unprotected (CRITICAL)
vserv_a:vol1: protected (vserv_b:vol1_mirror, data_protection)
[S2] ./check_netapp_pro.pl UnprotectedVolume -H filer --include=^vserv_a:

Same as above but checks only one vfiler (vserv_a).

NETAPP_PRO UNPROTECTEDVOLUME CRITICAL - 2 volumes checked, 1 critical and 0 warning
6 volumes skipped because of --include/--exclude settings.
vserv_a:vol0: unprotected (CRITICAL)
vserv_a:vol1: protected (vserv_b:vol1_mirror, data_protection)
[S3] ./check_netapp_pro.pl UnprotectedVolume -H filer --include=^vserv_a: --exclude=:vol$

Same as above but excludes also every vol0).

NETAPP_PRO UNPROTECTEDVOLUME OK - 1 volume checked
7 volumes skipped because of --include/--exclude settings.
vserv_a:vol1: protected (vserv_b:vol1_mirror, data_protection)

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