针对 VMM 服务器的 System Center 2019+ Virtual Machine Manager WinRM 服务

Microsoft.SystemCenter.VirtualMachineManager.VMMServerWinRMService.Monitor (UnitMonitor)

监视针对 VMM 管理服务器的 Windows 远程管理(WS-Management)服务的状态

Knowledge Base article:

摘要

WinRM Service 监视器指示 VMM 服务器上 WinRM 服务的可用性。如果 WinRM 服务未运行,则此监视器将处于严重状态(红色)。如果状态未知,则说明对此服务器的监视尚未开始。

原因

此 VMM 服务器的不正常状态指示在服务器上未运行 WinRM 服务。

解决方法

确保主机上的 WinRM 服务处于运行状态。您可以在服务器上使用管理工具中的服务来完成此操作。

Element properties:

TargetMicrosoft.SystemCenter.VirtualMachineManager.Discovery.VMMManagementServer
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Windows 远程管理 (WinRM) 服务已停止
Windows 远程管理(WS-Management)服务在计算机上已停止。计算机名:{0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.VirtualMachineManager.VMMServerWinRMService.Monitor" Accessibility="Public" Target="VMMDiscovery!Microsoft.SystemCenter.VirtualMachineManager.Discovery.VMMManagementServer" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Enabled="true">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.VirtualMachineManager.VMMServerWinRMService.Monitor.AlertMessage">
<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 HealthState="Success" MonitorTypeStateID="Running" ID="Success"/>
<OperationalState HealthState="Error" MonitorTypeStateID="NotRunning" ID="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<ServiceName>WinRM</ServiceName>
</Configuration>
</UnitMonitor>