Windows 服務狀態

Microsoft.SQLServer.2014.ReportingServices.UnitMonitor.WindowsServiceState (UnitMonitor)

此監視器會在 SSRS Windows 服務處於未執行狀態的時間較臨界值還長時發出警示。

Knowledge Base article:

摘要

此監視器會檢查 SQL Reporting Services Windows 服務的狀態。

原因

此監視器若處於「未執行」狀態,表示 SQL Reporting Services 服務已設定成自動啟動,但在特定期間會處於「已停止」狀態。此期間會在監視器屬性中定義,而且可以覆寫。此值的預設值為 900 秒 (15 分鐘)。若 SQL Reporting Services 回復成「正在執行」狀態的速度比該時間快,表示服務剛才已經重設過。

若此監視器在特定環境中造成妨礙,請增加 [無法使用的時間] 值。反之,若不夠積極,請減少該值。

Windows 服務常會因為多種不同的原因而停止,包括:

解決方式

您可以使用下列連結,檢視其他可能與此問題相關的 SQL Reporting Services™ 執行個體警示:

檢視 SQL Reporting Services 警示

可覆寫的參數

名稱

描述

預設值

僅在服務啟動類型為自動時發出警示

這只可設為 'true' 或 'false'。當此參數設為 'false' 時,此工作流程不會考慮服務目前的啟動類型設定。

已啟用

啟用或停用工作流程

產生警示

定義工作流程是否會產生警示

間隔 (秒)

執行工作流程的週期性時間間隔 (秒)。

60

範例數

指出變更狀態前,測量值違反臨界值的次數。

15

同步處理時間

使用 24 小時制指定的同步處理時間。將會忽略。

 

逾時 (秒)

指定允許工作流程在關閉且標示為失敗之前執行的時間。

300

Element properties:

TargetMicrosoft.SQLServer.2014.ReportingServices.Instance
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SQLServer.2014.ReportingServices.MonitorType.Instance.WindowsServiceState
RemotableTrue
AccessibilityPublic
Alert Message

SSRS 2014: Windows 服務已停止
電腦 {0} 上 Reporting Services 執行個體 {1} 的 Windows 服務已停止
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SQLServer.2014.ReportingServices.UnitMonitor.WindowsServiceState" Accessibility="Public" Enabled="true" Target="SQLRS!Microsoft.SQLServer.2014.ReportingServices.Instance" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Microsoft.SQLServer.2014.ReportingServices.MonitorType.Instance.WindowsServiceState" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2014.ReportingServices.UnitMonitor.WindowsServiceState.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="SQLRS!Microsoft.SQLServer.2014.ReportingServices.Instance"]/InstanceName$</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="SQLRS!Microsoft.SQLServer.2014.ReportingServices.Instance"]/ServiceName$</ServiceName>
<CheckStartupType>true</CheckStartupType>
<SampleCount>15</SampleCount>
<IntervalSeconds>60</IntervalSeconds>
<SyncTime/>
<TimeoutSeconds>300</TimeoutSeconds>
</Configuration>
</UnitMonitor>