Hyper-V Replication Integration Alert
Purpose
This solution is built to audit and alert for the Hyper-V Integration and Replication failure. It also helps to create an audit result by storing the Integration and Replication state.
Associated Content
| Content | Type | Function |
|---|---|---|
| cPVAL Hyper-V Integration Service Status | Custom field | This custom field stores the Hyper-V integration service status fetched by the Script - Hyper-V Integration Service Audit. |
| cPVAL Hyper-V Replication Status | Custom field | This custom field stores the Hyper-V replication status detail fetched from the Script - Hyper-V Replication Audit. |
| Hyper-V Integration Service Audit | Script | This script queries all Hyper-V virtual machines and looks for any VM where the IntegrationServicesState is Update required. If any such VM is found, the script stores the VM details in the NinjaOne custom field cpvalHyperVIntegrationServiceStatus and exits with code 1. If no VMs require Integration Services updates, the script stores UpToDate and exits successfully with code 0. |
| Hyper-V Replication Audit | Script | This script validates that it is running on a Hyper-V host using the vmms service. If not a Hyper-V host, it exits cleanly. If Hyper-V is present, it checks replication health and flags Critical or Warning states. |
| Hyper-V Integration Service Status Alert | Compound Condition | This compound condition is built to create the ticket if the Hyper-V Integration service state is out of date. |
| Hyper-V Replication State Alert | Compound Condition | This compound condition is built to create the ticket if the Hyper-V replicate state is unhealthy. |
Implementation
- Create the Custom field - cPVAL Hyper-V Integration Service Status
- Create the Custom field - cPVAL Hyper-V Replication Status
- Create the Script - Hyper-V Integration Service Audit
- Create the Script - Hyper-V Replication Audit
- Create the Compound Condition - Hyper-V Integration Service Status Alert
- Create the Compound Condition - Hyper-V Replication State Alert
Changelog
2026-05-11
- Initial version of the document