데이터베이스 연결

Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Monitor.DatabaseConnectionWeb (UnitMonitor)

Runbook 웹 서비스와 데이터베이스 간의 연결을 모니터링합니다.

Knowledge Base article:

요약

Runbook Worker 서버의 데이터베이스 연결을 모니터링합니다. Service Management Automation 데이터베이스에 대한 테스트 연결을 정기적으로 설정하여 모니터링합니다.

원인

이 모니터가 오류 상태에 있으면 서버에서 데이터베이스를 사용할 수 없거나 모니터에 대한 보안이 잘못 구성된 것입니다. 모니터를 구성하는 방법에 대한 자세한 내용은 구성 섹션을 참조하십시오.

모니터가 올바르게 구성되었는데 모니터가 오류 상태이면 데이터베이스가 오프라인이거나 Service Management Automation 서버에서 데이터베이스 서버에 액세스할 수 없는 것입니다.

해결 방법

Service Management Automation 데이터베이스 및 데이터베이스 서버의 상태를 확인합니다.

구성

이 모니터가 제대로 작동하려면 Service Management Automation 데이터베이스를 읽을 수 있는 권한이 있어야 합니다. 데이터베이스에 대한 읽기 권한이 있는 실행 계정을 만들고 Microsoft Service Management Automation 데이터베이스 계정이라고 하는 실행 프로필에 추가합니다.

이 모니터에 대해 구성할 수 있는 옵션:

옵션

정의

기본값

상태에 대한 경고

경고를 생성하는 모니터의 상태입니다.

모니터가 위험 상태에 있습니다.

경고 우선 순위

이 모니터에 대해 생성된 경고의 우선 순위입니다.

중간

경고 심각도

이 모니터에 대해 생성된 경고의 우선 순위입니다.

위험

경고 자동 해결

모니터가 정상 상태로 돌아올 경우 경고가 자동으로 해결되는지 여부를 지정합니다.

True

사용

모니터를 실행할지 여부를 지정합니다.

True

경고 생성

경고 또는 위험 상태로 변경될 때 모니터에서 경고를 생성할지 여부를 지정합니다.

True

간격

모니터가 실행되는 시간 사이의 초 수입니다.

300

Element properties:

TargetMicrosoft.SystemCenter.ServiceManagementAutomation.2012R2.Server.Web
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.ServiceManagementAutomation.2012R2.MonitorType.DatabaseConnection
RemotableTrue
AccessibilityPublic
Alert Message
Service Management Automation Runbook 웹 서비스에서 데이터베이스에 연결할 수 없습니다.
Service Management Automation 웹 서비스에서 데이터베이스에 연결할 수 없습니다.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Monitor.DatabaseConnectionWeb" Accessibility="Public" Enabled="true" Target="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Server.Web" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Low" TypeID="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.MonitorType.DatabaseConnection" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Monitor.DatabaseConnectionWeb.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ConnectionFailure" MonitorTypeStateID="ConnectionFailure" HealthState="Error"/>
<OperationalState ID="NoConnectionFailure" MonitorTypeStateID="NoConnectionFailure" HealthState="Success"/>
</OperationalStates>
<Configuration>
<Interval>300</Interval>
<DatabaseServer>$Target/Property[Type="SMA!Microsoft.SystemCenter.ServiceManagementAutomation.Server"]/DatabaseServerName$</DatabaseServer>
<DatabaseInstance>$Target/Property[Type="SMA!Microsoft.SystemCenter.ServiceManagementAutomation.Server"]/DatabaseServerInstance$</DatabaseInstance>
<DatabaseName>$Target/Property[Type="SMA!Microsoft.SystemCenter.ServiceManagementAutomation.Server"]/DatabaseName$</DatabaseName>
</Configuration>
</UnitMonitor>