可存取資料庫

Microsoft.SQLServer.2008.ReportingServices.UnitMonitor.DeploymentWatcher.DBConnection (UnitMonitor)

此監視器會在部署監控程式無法連線至 Reporting Services 資料庫時變更其狀態並引發警示

Knowledge Base article:

摘要

此監視器會在部署監控程式無法連線至 Reporting Services 資料庫時引發警示

原因

監視工作流程無法連線至資料庫的原因很多。

以下列出其中一部分原因:

解決方式

下列文章提供有助於解決此問題的資訊,以及一些疑難排解步驟的逐步解說:

管理報表伺服器資料庫 (SSRS 原生模式)

可覆寫的參數

名稱

描述

預設值

已啟用

啟用或停用工作流程

產生警示

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

間隔 (秒)

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

900

同步處理時間

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

 

資料庫連線的逾時

若工作流程無法在指定的期限之內存取資料庫,將會失敗並登錄一則事件。

200

逾時 (秒)

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

300

Element properties:

TargetMicrosoft.SQLServer.2008.ReportingServices.DeploymentWatcher
Parent MonitorSystem.Health.AvailabilityState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SQLServer.2008.ReportingServices.MonitorType.Instance.DBConnectionMonitor
RemotableTrue
AccessibilityPublic
Alert Message
SSRS 2008: 部署監控程式無法連線至 Reporting Services 資料庫
部署監控程式無法連線至 Reporting Services 資料庫。收到的錯誤訊息:
{0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SQLServer.2008.ReportingServices.UnitMonitor.DeploymentWatcher.DBConnection" Accessibility="Public" Enabled="true" Target="SQLRS!Microsoft.SQLServer.2008.ReportingServices.DeploymentWatcher" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Microsoft.SQLServer.2008.ReportingServices.MonitorType.Instance.DBConnectionMonitor" ConfirmDelivery="false">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2008.ReportingServices.UnitMonitor.DeploymentWatcher.DBConnection.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Property[@Name='Errors']$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Error" MonitorTypeStateID="Error" HealthState="Error"/>
<OperationalState ID="Success" MonitorTypeStateID="Success" HealthState="Success"/>
</OperationalStates>
<Configuration>
<DatabaseServerName>$Target/Property[Type="SQLRS!Microsoft.SQLServer.2008.ReportingServices.DeploymentWatcher"]/ServerFQDN$</DatabaseServerName>
<DatabaseInstanceName>$Target/Property[Type="SQLRS!Microsoft.SQLServer.2008.ReportingServices.DeploymentWatcher"]/DBInstanceName$</DatabaseInstanceName>
<DBConnectionString>$Target/Property[Type="SQLRS!Microsoft.SQLServer.2008.ReportingServices.DeploymentWatcher"]/DBConnectionString$</DBConnectionString>
<DatabaseName>$Target/Property[Type="SQLRS!Microsoft.SQLServer.2008.ReportingServices.DeploymentWatcher"]/DBName$</DatabaseName>
<TimeOut>200</TimeOut>
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
<TimeoutSeconds>300</TimeoutSeconds>
</Configuration>
</UnitMonitor>