Windows Management Instrumentation Service

Microsoft.SystemCenter.WMIService.ServiceMonitor (UnitMonitor)

This monitor checks the state of the Windows Management Instrumentation Service.

Knowledge Base article:

Summary

This monitor rolls up health from wmi service availability monitor that detect non-healthy conditions of the agents.

Navigate through the Health Explorer Unit Monitors that have the warning or critical state to see the state change information and specific knowledge to help troubleshoot problems.

Causes

The monitor checks the state of the WMI service to ensure that it is in a "running" state. If that is not the case over multiple checks, then an alert is raised.

Resolutions

To resolve the issue, the WMI service needs to be set to a state of "running" on the system. Take the following steps to resolve the problem:

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
The WMI Service is not running
The Windows Management Instrumentation (WMI) service has not being running after multiple checks. Many management packs contain rules, monitors and discoveries which require access to WMI, so if the service is not running then those workflows will not be able to complete.
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>