check_netapp_snapmirror metric transfer-duration

Monitors the last transfer-duration of snap-mirror relations.

Description

This monitoring plugin checks the transfer-duration of snap-mirror relations. (How much time did the last transmission take.)

Important Parameters

  • --warning / --critical: Thresholds for the transfer-duration. Can be set to 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.
  • --comparison: Defaults to gt ( greater than, here in the sense of »longer than«). Switching to lt (less than) can be used to invert the logic and check for transfers with a suspicious short duration.
  • --include / --exclude: Filter based on the instance names.

Examples

$ check_netapp_snapmirror metric transfer-duration -H filer
NETAPP SNAPMIRROR TRANSFER DURATION OK - 3 snapmirror relationships checked
DM5NFS:DM5NFS02->partner01:DM5NFS02_dest: 2.0 minute
DM5NFS:DM5NFS01->partner01:DM5NFS01_dest: 2.3 minute
DM3CIFS:SagsArchive->partner01:SagsArchive_dest: 1.4 minute
| 'DM5NFS:DM5NFS01->partner01:DM5NFS01_dest'=138s;39600;54000;0; …

Checks the last transfer-duration of all snap-mirror relations on the filer against the default-thresholds.


$ check_netapp_snapmirror metric transfer-duration -H filer --warning=30s --critical=1min
NETAPP SNAPMIRROR TRANSFER DURATION CRITICAL - 3 snapmirror relationships checked, 3 CRITICAL
DM5NFS:DM5NFS02->partner01:DM5NFS02_dest: 2.0 minute (CRITICAL)
DM5NFS:DM5NFS01->partner01:DM5NFS01_dest: 2.3 minute (CRITICAL)
DM3CIFS:SagsArchive->partner01:SagsArchive_dest: 1.4 minute (CRITICAL)
…

Checks the transfer-duration of all snap-mirror relations. Returns a warning if at least one of them took longer than 30 seconds and a critical alarm if longer than 1 minute.


$ check_netapp_snapmirror metric transfer-duration -H filer --warning=100s --critical=10s --comparison=lt
NETAPP SNAPMIRROR TRANSFER DURATION WARNING - 3 snapmirror relationships checked, 1 WARNING
DM3CIFS:SagsArchive->partner01:SagsArchive_dest: 1.4 minute (WARNING)
DM5NFS:DM5NFS02->partner01:DM5NFS02_dest: 2.0 minute
DM5NFS:DM5NFS01->partner01:DM5NFS01_dest: 2.3 minute
…

Checks the transfer-duration of all snap-mirror relations. Returns a warning if at least one of them took shorter than 100 seconds and a critical alarm if shorter than 10 seconds.