- Solutions
-
- File Server: Ransomware Protection
- File Server: File Copy
- File Server: Audit File Access
- File Server: Storage growth reporting
- Licensing/Pricing
- Contact
The Hyper-V Replication Monitor watches the replication status of virtual machines on a Hyper-V host server. It auto-discovers all VMs that have replication configured and alerts when replication health degrades, a VM enters a problematic replication state, or the last successful sync time exceeds a configurable threshold. This monitor works on both primary and replica servers.
The sync threshold defines the maximum acceptable age of the last successful replication. You can specify the threshold in minutes, hours or days. The default is 30 minutes. If any monitored VM's last successful sync is older than this threshold, the monitor will fire actions for that VM.
The monitor fires actions when any of the following conditions are detected on a monitored VM:
VMs with replication disabled (state = Disabled) are listed in the status output for informational purposes but are not evaluated against these alert conditions.
By default, the Automatically monitor all VMs that have replication enabled checkbox is checked. In this mode, the monitor watches every VM on the server that has active replication. New VMs added to the server are automatically included without needing to reconfigure the monitor.
If you uncheck this option, you can select individual VMs from the list. Only checked VMs will be monitored. VMs that do not have replication configured are shown greyed out in the list and cannot be selected.
The Refresh button re-queries the server for the current VM list. This is useful if VMs have been added or removed since the dialog was opened.
When "Automatically monitor all VMs" is enabled, clicking a checkbox in the VM list is blocked. The checkbox will briefly flash to indicate that you need to uncheck the auto-monitor option first before selecting individual VMs.
When the monitor runs, it queries the Hyper-V WMI provider on the target server to retrieve the replication state, health, last replication time and last apply time for each VM.
The monitor works correctly regardless of whether it is attached to the primary or replica side.
Extended replication relationships (the second hop in a chained replication topology) are automatically filtered out - only primary replication relationships are monitored.
The default monitoring interval is every 5 minutes.
The monitor recognises the following Hyper-V replication states:
| State | Description |
|---|---|
| Disabled | Replication is not configured for this VM |
| Ready for replication | Replication is configured but has not yet started |
| Waiting for start resync | Waiting for initial replication to begin |
| Replicating | Replication is actively running |
| Synced | Initial replication is complete |
| Recovered | VM has been recovered from a replica |
| Committed | Failover has been committed |
| Suspended | Replication has been paused (fires an alert) |
| Critical | Replication is in a critical error state (fires an alert) |
| Resynchronizing | A resynchronization is in progress |
The following variables are available for use in action scripting and custom alert messages. Because this monitor evaluates multiple VMs, these variables are available per-row in the action variable list:
| Variable | Description |
|---|---|
| $Item$ | The VM name |
| $ItemType$ | Constant value of "VM" |
| $CurrentValue$ | Current replication state (e.g. Replicating, Suspended, Critical) |
| $Extra1$ | Time of the last successful replication |
| $Severity$ | Replication health (OK, Warning, Error) |
If you receive an RPC error when the monitor runs, this often means the Windows RPC ports are being blocked by a firewall, or that the Hyper-V role is not installed or active on the target server.
Like all monitors, this monitor has standard buttons on the right for Adding Actions, setting Advanced Options and setting the Monitor Schedule.