NetApp Monitoring

Documentation

AutosizeMode-Check

Checks if all autosize-volumes have a given autosize-mode.

Usage

$ check_netapp_pro.pl AutosizeMode -H <host> ---ok_mode=grow_shrink|grow [--help] [...]

Description

Checks each volumes autosize-mode value and compares it to a supplied mode (--ok_mode parameter).

Exits OK if all volumes match the set-value. Exits CRITICAL if at least one of the volumes autosize-mode differs from what has been set with --ok_mode.

Remember that you can use --include and --exclude switches to define precisely which volumes should get checked.

In any case volumes which are not autosized are silently skipped by this check. So the default to check all volumes means in fact that all autosized volumes are checked.

Related DataONTAP Commands::

> autosize vol3 -is-enabled on # DataONTAP <= 8.1.x
cluster1::volume> autosize vol3 -mode grow_shrink # DataONTAP > 8.2.x

Simple Examples

[S1] ./check_netapp_pro.pl AutosizeMode -H filer --ok_mode=grow_shrink

Check all autosize-volumes if their mode is grow_shrink.

NETAPP_PRO AUTOSIZEMODE OK - 2 volumes checked for autosize-mode=grow_shrink
node01 vol1: grow_shrink
node01 vol2: grow_shrink
|
[S2] ./check_netapp_pro.pl AutosizeMode -H filer --ok_mode=shrink

Check all autosize-volumes if their mode is shrink.

NETAPP_PRO AUTOSIZEMODE CRITICAL - 2 volumes checked for autosize-mode=shrink, 0 warning 2 critical
node01 vol1: grow_shrink (CRITICAL)
node01 vol2: grow_shrink (CRITICAL)
|

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