Checks which volumes have a tamperproof snapshot protection that has already expired.
This check is beta. It covers SnapLock volumes and volumes with snapshot locking (tamperproof snapshots). Its behaviour and options may change in a later release, depending on feedback from production use. Please tell us which options you use and what you miss.
$ check_netapp_snapshot volume tamperproof expired -H <host> [...] [--help]
This plugin evaluates the volume-level SnapLock expiry time (snaplock.expiry_time) of SnapLock volumes and of volumes with snapshot locking (tamperproof snapshots, Ontap 9.12.1 or later), like … tamperproof expiry-time. It only answers one question: is the expiry time reached?
| Volume | Result |
|---|---|
| expiry time is reached or in the past | CRITICAL |
| expiry time in the future, however short the remaining time is | OK |
| no expiry time (e.g. snapshot locking enabled, but no locked snapshot) | skipped (see --no-expiry) |
| expiry time can not be read | UNKNOWN |
There are no thresholds. Use … tamperproof expiry-time to get an alarm before the protection expires; with --expired=skip it leaves the expired volumes to this check.
Expired volumes are often retired ones, e.g. the former destination of a SnapMirror relationship which is kept for a while. Take them out with --exclude.
This check requires Ontap 9.10.1 or later (see Ontap Compatibility). Volumes with snapshot locking are considered on Ontap 9.12.1 or later.
--scope: Which protected volumes are checked: both (default), snaplock (SnapLock volumes only) or snapshot-locking (volumes with snapshot locking only).--no-expiry: How to treat a volume without expiry time. Such a volume has not expired, it was never protected: skip (default, counted in the output), ok or critical.--include / --exclude: Filter on the instance name <svm>.<volume> (e.g. svm1.vol_data). A value without ~ must match the whole instance name; to filter on the volume name alone use a pattern like --include='~\.vol_data$'. See Regular Expressions.--alarm-limit: Set it to WARNING if an expired volume should only be a warning.For all other parameters consult --help on the commandline.
All protected volumes of the filer:
$ check_netapp_snapshot volume tamperproof expired -H filer
NETAPP TAMPERPROOF SNAPSHOT EXPIRED CRITICAL - 5 volumes checked, 1 CRITICAL
1 volume skipped (no expiry time, --no-expiry=skip)
svm_dp.sv_app01_old_vol01: expired at 2026-01-21T23:24:16+01:00 (15.8 week ago) (CRITICAL)
svm_dp.sv_archive01: expires in 3.6 year
svm_prod.vol_archive01: expires in 6.0 week
svm_dp.sv_app01_vol01: expires in 6.4 day
svm_dp.sv_db01_vol01: expires in 6.4 day
Without the retired volumes, and only the volumes with snapshot locking:
$ check_netapp_snapshot volume tamperproof expired -H filer --scope=snapshot-locking --exclude='~_old_'
NETAPP TAMPERPROOF SNAPSHOT EXPIRED OK - 2 volumes checked
1 instances skipped because of --include/--exclude settings
1 volume skipped (no expiry time, --no-expiry=skip)
svm_dp.sv_app01_vol01: expires in 6.4 day
svm_dp.sv_db01_vol01: expires in 6.4 day