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>