服務執行狀態

Microsoft.SystemCenter.ManagementConfigurationService.ServiceState.Monitor (UnitMonitor)

監視 Windows 服務的目前狀態。此監視發出的警示表示 Windows 服務目前未在執行

Knowledge Base article:

摘要

此監視會依指定時間間隔查詢服務控制管理員,藉以檢查 Windows 服務的狀態。設定監視的方式有兩種。

1) 如果監視設定為只監視自動服務,且服務設定為自動啟動但目前未在執行中,便會產生警示。如果服務設定為手動啟動或已停用,當服務停止時將不會產生警示。

2) 如果監視並未設定為只監視自動服務,則不論服務設定成以何種方式啟動,只要服務目前未在執行中,便會產生警示。

原因

服務可能會因許多原因而停止,其中包括:

解決方式

使用下列連結可檢視對此服務收集到的所有事件:

檢視所有事件

使用下列連結可嘗試重新啟動 Windows 服務:

啟動服務

Element properties:

TargetMicrosoft.SystemCenter.ManagementConfigurationService
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityLow
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityInternal
Alert Message
System Center 管理設定服務已停止
電腦 {1} 上的 '{0}' 服務已停止執行
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.ManagementConfigurationService.ServiceState.Monitor" Accessibility="Internal" Enabled="true" Target="Microsoft.SystemCenter.ManagementConfigurationService" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.ManagementConfigurationService.ServiceState.Monitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Low</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="MicrosoftSystemCenterNTServiceLibrary!Microsoft.SystemCenter.NTService"]/DisplayName$</AlertParameter1>
<AlertParameter2>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Success" MonitorTypeStateID="Running" HealthState="Success"/>
<OperationalState ID="Error" MonitorTypeStateID="NotRunning" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<ServiceName>$Target/Property[Type="MicrosoftSystemCenterNTServiceLibrary!Microsoft.SystemCenter.NTService"]/ServiceName$</ServiceName>
<CheckStartupType>true</CheckStartupType>
</Configuration>
</UnitMonitor>