MECM Site Server Connectivity To SQL Database Server Availability Monitor

MECM.Database.Connectivity.RoleAvailability.Monitor (UnitMonitor)

This monitor checks the site server connectivity to SQL database server.

Knowledge Base article:

Summary

This monitor checks the database connection between the ConfigMgr site server and the Site database server. It generates an alert when the site server fails to connect to the site database server.

Causes

There are many possible root causes, including:

Resolutions

Element properties:

TargetMECM.SiteServerRoleBaseClass
Parent MonitorMECM.SiteRole.AggregateRollup.Monitor
CategoryCustom
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMECM.RoleAvailability.MT
RemotableTrue
AccessibilityPublic
Alert Message
MECM Site server cannot connect to database
The site server connection to SQL server {0} is not available.
RunAsDefault

Source Code:

<UnitMonitor ID="MECM.Database.Connectivity.RoleAvailability.Monitor" Accessibility="Public" Enabled="true" Target="MECM.SiteServerRoleBaseClass" ParentMonitorID="MECM.SiteRole.AggregateRollup.Monitor" Remotable="true" Priority="Normal" TypeID="MECM.RoleAvailability.MT" ConfirmDelivery="true">
<Category>Custom</Category>
<AlertSettings AlertMessage="MECM.Database.Connectivity.RoleAvailability.Monitor.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="UIGeneratedOpStateId56dbc36a28e84523ad1e7abfe018e0ef" MonitorTypeStateID="Good" HealthState="Success"/>
<OperationalState ID="UIGeneratedOpStateId23cc4916522a4a9e8f14b55c969bb363" MonitorTypeStateID="Warning" HealthState="Warning"/>
<OperationalState ID="UIGeneratedOpStateId182294f9f9324cdcbe681eb19d7f32d1" MonitorTypeStateID="Error" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<RoleName>SMS SQL Server</RoleName>
<IntervalSeconds>360</IntervalSeconds>
<MatchCount>3</MatchCount>
</Configuration>
</UnitMonitor>