Login

Javascript must be enabled to download our products and perform other essential functions on the website.

ionicons-v5-m
ionicons-v5-j
Buy Now Download Free Trial
ionicons-v5-m
ionicons-v5-f

Hyper-V Replication Monitor

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.

Sync Threshold

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.

Alert Conditions

The monitor fires actions when any of the following conditions are detected on a monitored VM:

  • Replication health is Warning or Critical — Hyper-V reports the replication health of each VM as OK, Warning or Critical. Any health value other than OK triggers an alert.
  • Replication state is Suspended or Critical — These states indicate replication has stopped or is in a critical failure state.
  • Last sync time exceeds threshold — If the most recent successful replication is older than the configured threshold, the monitor fires actions. This catches situations where replication appears healthy but data is not actually flowing.

VMs with replication disabled (state = Disabled) are listed in the status output for informational purposes but are not evaluated against these alert conditions.

VM Selection

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.

ionicons-v5-h

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.

How It Works

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.

Replication States

The monitor recognises the following Hyper-V replication states:

StateDescription
DisabledReplication is not configured for this VM
Ready for replicationReplication is configured but has not yet started
Waiting for start resyncWaiting for initial replication to begin
ReplicatingReplication is actively running
SyncedInitial replication is complete
RecoveredVM has been recovered from a replica
CommittedFailover has been committed
SuspendedReplication has been paused (fires an alert)
CriticalReplication is in a critical error state (fires an alert)
ResynchronizingA resynchronization is in progress

Scripting Variables

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:

VariableDescription
$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)

Requirements

  • The target server must have the Hyper-V role installed and active.
  • Windows RPC connectivity is required between the monitoring service and the target server.
  • The monitoring service account must have permissions to query WMI on the target server.
ionicons-v5-h

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.

Standard Configuration Options

Like all monitors, this monitor has standard buttons on the right for Adding Actions, setting Advanced Options and setting the Monitor Schedule.

PA Server Monitor

Help Map