NetApp Monitoring

Documentation

UsageTrend-Check

Checks the aggregates or volumes interpolated usage-trend.

Usage

$ check_netapp_pro.pl UsageTrend -H <host> -o aggregate|volume [-I <name> | -X <name>] [--help] [...]

Description

The art of prophecy is very difficult, especially with respect to the future. (Mark Twain)

This plugin warns that the aggregate or volume would be full within a given time, if the present trend would continue.

The --lookbehind-period must be configured in accordance with the collectors --stm (short-term-memory). The optional switch --tolerance may be usefull to relax the periods.

What is considered to be "full" can be defined with --full. This may be useful if you are expecting difficulties at already 95% or in case you want to overcommit an aggregate (>100%).

This check will return UNKNOWN until it finds enough history. So be patient and consider disabling the notifications until you get the first OK.

A trend of 0 or less is always considered to be ok.

Consider using -v for inspection, if you are not satisfied with the result.

Collecting History

This check requires a longer short-term-memory (history) about the past to be able to interpolate these historical trends into the future. Do not forget to set an appropriate value for the short-term-memory (--stm) in the corresponding getter for the volume and aggregate object. E.g. for a --lookbehind=1d the volume and aggregate getter needs a --stm=1d or even better --stm=25h.

Handling of too less history

If the getter did not collect enough history so far to fullfill the lookbehind the check tries with reduced lookbehind-values until lookbehind is getting smaller than tolerance + 10 seconds. If the check finds a value while trying it will return that value together with a hint and exit at least with a WARNING.

Checking inodes

Per default this plugin measures and interpolates the size in Bytes. Using --what=inodes this can be changed to inodes (files-used, files-total).

Simple Examples

[S1] ./check_netapp_pro.pl UsageTrend -H filer -o aggregate --lookbehind=48h -w 7d -c 3d

Warns that if the trend of the last 48 hours would continue, the aggregate will be full within 7 days.


NETAPP_PRO USAGETREND CRITICAL - 4 aggregates checked, 1 critical, 2 warning.
clusterA-01 aggr0: 6 days until full (98%) (WARNING)
clusterA-01 aggr1: 2 days until full (98%) (CRITICAL)
clusterA-02 aggr0: 5 days until full (98%) (WARNING)
clusterA-02 aggr2: 73 days until full (98%) (OK)
[S2] ./check_netapp_pro.pl UsageTrend -H filer -o volume --what=inodes --lookbehind=48h -w 7d -c 3d

Same as above but checks the inodes per volume.

[S3] ./check_netapp_pro.pl UsageTrend -H filer -o aggregate --lookbehind=48h --full=80 -w 7d -c 3d

Warns if the trend of the last 48h would fill the aggregate to 80% within 7 days.

[S4] ./check_netapp_pro.pl UsageTrend -H filer -o volume --lookbehind=1h -w 7d -c 3d

Warns if the last hours trend would fill the volume within the next 7 days.


NETAPP_PRO USAGETREND CRITICAL - 4 volumes checked, 1 critical and 0 warning
sim83-01 vol0: 40584.0 s (0.5 days) until full (98%), rate: 51.1 / day (CRITICAL)
vserv01 vol0: 0.0 No change or negative rate in periode, rate: 0
vserv01 vol11: 0.0 No change or negative rate in periode, rate: 0
vserv01 vol12: 0.0 No change or negative rate in periode, rate: 0

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 UsageTrend ... -o volume --check_only=without_lun

Check only "normal" volumes (without LUN) using the default values.

[A2] ./check_netapp_pro.pl UsageTrend ... -o volume --check_only=with_lun

Check only volumes which have a LUN on it.

[A3] ./check_netapp_pro.pl UsageTrend ... -o volume --check_only=..500GiB -w 80 -c 90

Check only small volumes (up to 500GiB). This allows for different thresholds depending on the volumes total size.

[A4] ./check_netapp_pro.pl UsageTrend ... -o volume --check_only=500GiB..10TiB -w 90 -c 95

Check only medium volumes (between 0,5 and 10TiB).

[A5] ./check_netapp_pro.pl UsageTrend ... -o volume --check_only=10TiB.. -w 95 -c 98

Check only large volumes (over 10TiB).

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