This montior compares the Hyper-V virtual machine name with the VM's computer name. It raises alerts when the virtual machine name does not match the VM's computer name.
This montior compares the Hyper-V virtual machine name with the VM's computer name. It raises alerts when the virtual machine name does not match the VM's computer name.
Generally speaking, when a VM is intially built, the virtual machine name would match the computer name. However, if later on the computer name has been changed in the Operating System on the VM, it may cause duplicate records for this computer in various System Center products such as OpsMgr and ConfigMgr. This monitor is designed to detect when the computer name configured on Operating System does not match the VM name and a warning alert is generated.
Rename the VM name to match the computer name. Review systems such as OpsMgr and ConfigMgr and remove the old obsolete agent / computer records.
Target | QND.Hyperv.2012R2.VM | ||
Parent Monitor | System.Health.ConfigurationState | ||
Category | ConfigurationHealth | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Warning | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | QND.Hyperv2012R2.VMName.ComputerName.Match.MT | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="QND.Hyperv2012R2.VMName.Matches.ComputerName.Monitor" Accessibility="Public" Enabled="true" ConfirmDelivery="false" ParentMonitorID="Health!System.Health.ConfigurationState" Priority="Normal" Remotable="true" Target="QND.Hyperv.2012R2.VM" TypeID="QND.Hyperv2012R2.VMName.ComputerName.Match.MT">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="QND.Hyperv2012R2.VMName.Matches.ComputerName.Monitor.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="QND.Hyperv.2012R2.VM"]/VMComputerName$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="QND.Hyperv.2012R2.VM"]/VirtualMachineName$</AlertParameter2>
<AlertParameter3>$Data/Context/Property[@Name='NetBIOSName']$</AlertParameter3>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="NamesMatch" MonitorTypeStateID="NamesMatch" HealthState="Success"/>
<OperationalState ID="NamesDoNotMatch" MonitorTypeStateID="NamesDoNotMatch" HealthState="Warning"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>86400</IntervalSeconds>
<SyncTime/>
<ComputerFQDN>$Target/Property[Type="QND.Hyperv.2012R2.VM"]/VMComputerName$</ComputerFQDN>
<VMName>$Target/Property[Type="QND.Hyperv.2012R2.VM"]/VirtualMachineName$</VMName>
<TimeoutSeconds>300</TimeoutSeconds>
</Configuration>
</UnitMonitor>