Windows Management Instrumentation 服务

Microsoft.SystemCenter.WMIService.ServiceMonitor (UnitMonitor)

此监视器检查 Windows Management Instrumentation 服务的状态。

Knowledge Base article:

摘要

此监视器对用于检测代理的非正常情况的 WMI 服务可用性监视器中的运行状况进行汇总。

浏览状态为“警告”或“严重”的运行状况资源管理器单元监视器,查看状态更改信息以及特定知识以帮助解决问题。

原因

监视器检查 WMI 服务的状态以确保它处于“正在运行”状态。如果在多次检查后仍未如此,则引发警报。

解决方法

要解决问题,需要在系统上将 WMI 服务设置为“正在运行”状态。执行以下步骤来解决问题:

Element properties:

TargetMicrosoft.SystemCenter.HealthService
Parent MonitorMicrosoft.SystemCenter.AgentManagement.WMIServiceAvailabilityRollup
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.2007.WindowsServiceNotRunningState.ConsecutiveSamplesThreshold.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
WMI 服务未运行
Windows Management Instrumentation (WMI) 服务在多次检查后未运行。许多管理包包含需要访问 WMI 的规则、监视器和发现,因此,如果该服务未运行,则那些工作流将无法完成。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.WMIService.ServiceMonitor" Accessibility="Public" Enabled="true" Target="SCLibrary!Microsoft.SystemCenter.HealthService" ParentMonitorID="Microsoft.SystemCenter.AgentManagement.WMIServiceAvailabilityRollup" Remotable="true" Priority="Normal" TypeID="Microsoft.SystemCenter.2007.WindowsServiceNotRunningState.ConsecutiveSamplesThreshold.MonitorType" ConfirmDelivery="true">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.WMIService.ServiceMonitor.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/@time$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="NotRunning" MonitorTypeStateID="NotRunning" HealthState="Warning"/>
<OperationalState ID="Running" MonitorTypeStateID="Running" HealthState="Success"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<ServiceName>Winmgmt</ServiceName>
<IntervalSeconds>125</IntervalSeconds>
<Threshold>3</Threshold>
</Configuration>
</UnitMonitor>