觸發程序服務狀態

Microsoft.MSMQ.6.3.Monitor.Service.Triggers (UnitMonitor)

Knowledge Base article:

摘要

此監視器會追蹤 MSMQ Triggers (觸發程序) 服務的狀態,而且將會根據此服務是否執行變更狀態。 根據預設,服務未執行時,監視器會產生警示。

原因

支援服務的處理序失敗,或者該服務收到停止命令。

解決方式

重新啟動 MSMQ Triggers (觸發程序) 服務。 如果服務無法啟動,則請尋找事件記錄檔中的事件 (其可提供更多詳細資料),以進一步調查失敗的原因。

Element properties:

TargetMicrosoft.MSMQ.6.3.Triggers
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
MSMQ Triggers (觸發程序) 服務已停止。
MSMQ Triggers (觸發程序) 服務已停止。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.MSMQ.6.3.Monitor.Service.Triggers" Accessibility="Public" Enabled="true" Target="Microsoft.MSMQ.6.3.Triggers" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.MSMQ.6.3.Monitor.Service.Triggers.AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Running" MonitorTypeStateID="Running" HealthState="Success"/>
<OperationalState ID="NotRunning" MonitorTypeStateID="NotRunning" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<ServiceName>$Target/Property[Type="Microsoft.MSMQ.6.3.Trigger"]/ServiceName$</ServiceName>
<CheckStartupType/>
</Configuration>
</UnitMonitor>