Połączenie z bazą danych

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

Monitoruje łączność między serwerem Runbook Worker a bazą danych.

Knowledge Base article:

Podsumowanie

Monitoruje łączność bazy danych z serwerów Runbook Worker. Jest to wykonywane przez okresowe nawiązywanie połączenia testowego z bazą danych Service Management Automation.

Przyczyny

Gdy ten monitor jest w stanie błędu, baza danych nie jest dostępna na serwerze lub zabezpieczenia monitora nie są skonfigurowane. Szczegółowe informacje dotyczące konfigurowania monitora można znaleźć w części Konfiguracja.

Jeśli monitor jest skonfigurowany poprawnie, a mimo tego występuje w nim błąd, oznacza to, że baza danych jest w trybie offline lub serwer bazy danych jest niedostępny dla serwera programu Service Management Automation.

Rozwiązanie

Sprawdź stan bazy danych programu Service Management Automation oraz serwera bazy danych.

Konfiguracja

Aby ten monitor działał prawidłowo, musi on mieć uprawnienia do odczytu bazy danych programu Service Management Automation. Utwórz konto Uruchom jako z uprawnieniami do odczytu bazy danych i dodaj je do profilu Uruchom jako o nazwie Konto bazy danych programu Microsoft Service Management Automation.

Można skonfigurować następujące opcje tego monitora:

Opcja

Definicja

Domyślne

Alert na podstawie stanu

Stan kondycji monitora generującego alert.

Monitor wskazuje krytyczny stan kondycji

Priorytet alertu

Priorytet alertu generowanego dla tego monitora.

Średni

Ważność alertu

Priorytet alertu generowanego dla tego monitora.

Krytyczny

Automatyczne rozwiązywanie alertu

Określa, czy alert powinien zostać rozwiązany automatycznie po powrocie monitora do stanu prawidłowego.

Prawda

Włączone

Określa, czy monitor powinien zostać uruchomiony.

Prawda

Generuje alert

Określa, czy monitor powinien generować alert po przejściu w stan ostrzeżenia lub w stan krytyczny.

Prawda

Interwał

Liczba sekund między okresami uruchomienia monitora.

300

Element properties:

TargetMicrosoft.SystemCenter.ServiceManagementAutomation.2012R2.Server.Worker
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
Program Service Management Automation Runbook Worker nie może połączyć się z bazą danych.
Serwer Worker programu Service Management Automation nie może połączyć się z bazą danych.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Monitor.DatabaseConnectionWorker" Accessibility="Public" Enabled="true" Target="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Server.Worker" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.MonitorType.DatabaseConnection" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Monitor.DatabaseConnectionWorker.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>