Documentation
SnapMirrorMetrics-Check
Checks SnapMirror relations lag-time, transfer-duration or transfer-size.
Usage
$ check_netapp_pro.pl SnapMirrorMetrics -H <host> [--metric=lag-time|transfer-duration|transfer-size] [ ... ] [--help]
Description
This plugin checks either the lag-time, the transfer-duration or the transfer-size
of each relation. Thanks to the --comparison
switch both too large and
suspiciously small numbers can be alarmed. See the advanced examples below.
ATTENTION: Relations without a valid value for the selected metric are silently skipped! (But you can make this visible in verbose-mode on the commandline.)
Therefore we highly recommend to additionally check with SnapMirrorState to detect such relations.
Simple Examples
Check all relations for their lag-time using the default-thresholds
Checks the transfer-duration instead of the lag-time.Warn if the last transfer took longer than 10 min.
Advanced Examples
Hint: The input for advanced examples is shortend. Replace the '...' below with ‑H <your filers ip or host-name>
Checks for overly large transfer-sizes. Warns if the total number of bytes transferred as part of the last transfer exceeds 1 MiB (1024 kiB)
Same as above but warns for more than 10 GiB (10 Giga Byte)
Checks for suspicious small transfers. Warns if the last transfer was smaller than 100 kiB.
Checks the lag-time. Thresholds and output are in minutes (instead of seconds)
Checks the lag-time. Thresholds and output are in days (instead of seconds)
Checks the lag-time. Thresholds and output are in weeks (instead of seconds)
Uninitialised snapmirrors are OK as well. Useful if you setup a far away vserver peer and activated protection with snapmirror - synchronisation can take a long time than.