Service Running State

Microsoft.SystemCenter.NTService.ServiceStateMonitor (UnitMonitor)

Monitors the current status of the Windows service. An alert from this monitor indicates the Windows Service is not currently running

Knowledge Base article:

Summary

This monitor checks the status of a Windows service by querying WMI on a timed interval. If the service is set to automatically start and the service is not currently running an alert will be raised. If the service is set to manually start or it is disabled, no alert will be raised when the service is stopped.

Causes

A service can stop for many reasons, including:

Resolutions

You can view all collected events for this service using the following link:

View all events

You can attempt to restart the Windows service by using the following link:

Start the Service

Element properties:

TargetMicrosoft.SystemCenter.NTService
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityLow
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityInternal
Alert Message
Windows Service Stopped
The '{0}' service on computer {1} has stopped running
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.NTService.ServiceStateMonitor" Accessibility="Internal" Target="Microsoft.SystemCenter.NTService" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ParentMonitorID="Health!System.Health.AvailabilityState" Enabled="true">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.NTService.ServiceStateMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Low</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="Microsoft.SystemCenter.NTService"]/DisplayName$</AlertParameter1>
<AlertParameter2>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter2>
</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>$Target/Property[Type="Microsoft.SystemCenter.NTService"]/ServiceName$</ServiceName>
<CheckStartupType>true</CheckStartupType>
</Configuration>
</UnitMonitor>