check_netapp_snapmirror metric lag-time

Monitors the lag-time of snap-mirror relations.

Description

This monitoring plugin checks the lag-time of snap-mirror relations. (How much time has passed since a relation was last synchronized.)

Important Parameters

  • --warning / --critical: Thresholds for the lag-time. Can be set in seconds (s), minutes (min), hours (h), days (d) or weeks (w). E.g. --warning=7d is the same as --warning=1w. Months and years are not supported because their duration is not clear. See also Durations.
  • --include / --exclude: Filter based on the instance names.

Example

$ check_netapp_snapmirror metric lag-time -H filer
NETAPP SNAPMIRROR LAG TIME OK - 3 snapmirror relationships checked
DM5NFS:DM5NFS02->partner01:DM5NFS02_dest: 8.9 hour\E'
DM5NFS:DM5NFS01->partner01:DM5NFS01_dest: 8.9 hour\E'
DM3CIFS:SagsArchive->partner01:SagsArchive_dest: 9.0 hour\E'
| DM5NFS:DM5NFS01->partner01:DM5NFS01_dest'=31993s;39600;54000;0; …

Checks the lag-time of all snap-mirror relations on the filer against the default-thresholds.


$ check_netapp_snapmirror metric lag-time -H filer --warning=4h --critical=8h
NETAPP SNAPMIRROR LAG TIME OK - 3 snapmirror relationships checked
DM5NFS:DM5NFS02->partner01:DM5NFS02_dest: 8.9 hour\E'
DM5NFS:DM5NFS01->partner01:DM5NFS01_dest: 8.9 hour\E'
DM3CIFS:SagsArchive->partner01:SagsArchive_dest: 9.0 hour\E'
| DM5NFS:DM5NFS01->partner01:DM5NFS01_dest'=31993s;39600;54000;0; …

Checks the lag-time of all snap-mirror relations. Returns a warning if at least one of them is larger than 4 hours and a critical alarm if larger than 8 hours.