Windows 服務狀態

Microsoft.SQLServer.2012.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',則此工作流程不會考慮服務目前的啟動類型設定。

1

已啟用

 

1

產生警示

 

間隔 (秒)

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

60

範例數

指出測量值在違反臨界值多少次之後,才會變更狀態。

15

同步處理時間

 

 

Element properties:

TargetMicrosoft.SQLServer.2012.ReportingServices.Instance
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SQLServer.2012.ReportingServices.MonitorType.Instance.WindowsServiceState
RemotableTrue
AccessibilityPublic
Alert Message
SSRS 2012: Windows 服務已停止
電腦 {0} 上 Reporting Services 執行個體 {1} 的 Windows 服務已停止
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SQLServer.2012.ReportingServices.UnitMonitor.WindowsServiceState" Accessibility="Public" Enabled="true" Target="SQLRS!Microsoft.SQLServer.2012.ReportingServices.Instance" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Microsoft.SQLServer.2012.ReportingServices.MonitorType.Instance.WindowsServiceState" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2012.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.2012.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.2012.ReportingServices.Instance"]/ServiceName$</ServiceName>
<CheckStartupType>true</CheckStartupType>
<SampleCount>15</SampleCount>
<IntervalSeconds>60</IntervalSeconds>
<SyncTime/>
</Configuration>
</UnitMonitor>