虚拟机管理服务

Microsoft.Windows.HyperV.2016.Services.VirtualMachineManagementServiceMonitor (UnitMonitor)

监视虚拟机管理服务的状态。

Knowledge Base article:

摘要

此监视器跟踪运行 Hyper-V 的服务器上虚拟机管理服务的运行状况状态。如果服务已启动并正在运行,则监视器的状态为“正常”。如果服务未运行,则监视器的状态为“严重”。

原因

当虚拟机管理服务未运行时,会出现“严重”状态。当监视器处于非正常状态时,将引发警报。

解决方法

当监视器处于非正常状态时,会运行自动恢复。该恢复尝试重新启动虚拟机管理服务。如果服务能够重新启动,则监视器回到正常状态,并自动解决警报。如果恢复未使服务重新启动,则监视器会保持“严重”状态,警报将处于未解决的状态。

Element properties:

TargetMicrosoft.Windows.HyperV.2016.ServerRole
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Hyper-V 2016 虚拟机管理服务未运行
计算机 {0} 中的 Microsoft Windows Hyper-V 2016 虚拟机管理服务未运行。这将导致虚拟机无法启动。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.HyperV.2016.Services.VirtualMachineManagementServiceMonitor" Accessibility="Public" Enabled="onEssentialMonitoring" Target="HVDisc!Microsoft.Windows.HyperV.2016.ServerRole" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.HyperV.2016.Services.VirtualMachineManagementServiceMonitor.Alert">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ServiceHealthy" MonitorTypeStateID="Running" HealthState="Success"/>
<OperationalState ID="ServiceNotHealthy" MonitorTypeStateID="NotRunning" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<ServiceName>vmms</ServiceName>
<CheckStartupType>false</CheckStartupType>
</Configuration>
</UnitMonitor>