SnapMirrorState-Check
Checks the state of SnapMirror relations.
Usage
$ check_netapp_pro.pl SnapMirrorState -H <host> [--state=health|mirror] [ ... ] [--help]
Description
This plugin checks either the health-state or the mirror-state of each relation.
To monitor the lag-time and transfer-size/-time use SnapMirrorMetrics.
[S1] ./check_netapp_pro.pl SnapMirrorState -H filer Check all relations for the mirror-state (default)
NETAPP_PRO SNAPMIRRORSTATE OK - 2 snapmirror relations checked.
vserv1:snapdest_2: snapmirrored
vserv1:snapdst: snapmirrored
[S2] ./check_netapp_pro.pl SnapMirrorState -H filer Same as above, but on an other filer w/ a new snap-mirror.
NETAPP_PRO SNAPMIRRORSTATE WARNING - 2 snapmirror relations checked, 0 critical and 1 warning.
vserv1:vol_userbak: uninitialized (WARNING)
vserv1:vol_systembak: snapmirrored
[S3] ./check_netapp_pro.pl SnapMirrorState -H filer --state=health Checking the health-state.
NETAPP_PRO SNAPMIRRORSTATE OK - 2 snapmirror relations checked.
vserv1:snapdest_2: healthy (snapmirrored)
vserv1:snapdst: healthy (snapmirrored)
[S4] ./check_netapp_pro.pl SnapMirrorState -H filer --state=health The health-state of an uninitialized relation is OK.
NETAPP_PRO SNAPMIRRORSTATE OK - 2 snapmirror relations checked.
vserv1:vol_userbak: healthy (uninitialized)
vserv1:vol_systembak: healthy (snapmirrored)
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 SnapMirrorState ... -y health -X snapdest_2 Excluding one snapmirror-relation. (Could be ambiguous!)
NETAPP_PRO SNAPMIRRORSTATE OK - 1 snapmirror relation checked.
vserv1:snapdst: healthy (snapmirrored)
[A2] ./check_netapp_pro.pl SnapMirrorState ... -y health -X ^vserv1:snapdest_2$ Same as above but more precise.
NETAPP_PRO SNAPMIRRORSTATE OK - 1 snapmirror relation checked.
vserv1:snapdst: healthy (snapmirrored)