服務執行狀態

Microsoft.SystemCenter.Apm.Infrastructure.Monitoring.ActivatedApmAgent.ServiceRunningState.Monitor (UnitMonitor)

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

Knowledge Base article:

摘要

當 APM Windows 服務未執行時,執行個體狀態會變為狀況不良。

原因

Systems Center Management APM Windows 服務必須針對 .NET 應用程式效能監視執行,以便從伺服器上執行的應用程式收集資料。 該服務可能已停止或停用。

解決方式

連線到服務已停止的伺服器,並使用 Services.msc 重新啟動 System Center Management APM Windows 服務。

如果服務無法啟動,請檢查 Operations Manager 事件記錄檔中是否有與服務相關的錯誤。

Element properties:

TargetMicrosoft.SystemCenter.Apm.ActivatedApmAgent
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityLow
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableFalse
AccessibilityPublic
Alert Message
APM Windows 服務已停止
電腦 {1} 上的 '{0}' 服務已停止執行
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.Apm.Infrastructure.Monitoring.ActivatedApmAgent.ServiceRunningState.Monitor" Accessibility="Public" Enabled="true" Target="Microsoft.SystemCenter.Apm.ActivatedApmAgent" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="false" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.Apm.Infrastructure.Monitoring.ActivatedApmAgent.ServiceRunningState.Monitor.AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Low</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>System Center Management APM</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>System Center Management APM</ServiceName>
<CheckStartupType>false</CheckStartupType>
</Configuration>
</UnitMonitor>