SQL Server 防火牆連接埠監視

Microsoft.SystemCenter2012.ConfigurationManager.SQLFirewall (UnitMonitor)

此監視會檢查防火牆上的 SQL Server 連接埠是否開啟。

Knowledge Base article:

摘要

這是定義明確的連接埠,用於使用 SQL Service Broker 之子和父 SQL Server 之間 (預設值 4022;可自訂),或是大部分 Configuration Manager 站台系統角色或提供者與 SQL Server 之間 (預設值 1433;可自訂) 的 Configuration Manager 複寫通訊。 SQL Server 連接埠 (預設值 1433) 由 SQL Server 資料庫系統管理員負責維護。 第一次設定 SQL Server 和 Configuration Manager 站台伺服器時,這兩個系統的系統管理員以及網路系統管理員都必須在防火牆中開啟選取的連接埠,讓 SQL Server 能夠與 Configuration Manager 站台系統角色或提供者正常通訊。 同樣地,在設定多個 SQL Server 資料庫時,若各個資料庫分別支援一部 Configuration Manager 站台伺服器,SQL Server 的系統管理員以及網路系統管理員也必須在防火牆中開啟 SQL Server Service Broker 連接埠 (預設值 4022)。

原因

解決方式

當 Configuration Manager 偵測到設定的 SQL Server 通訊連接埠 (預設值 1433) 或 SQL Server Service Broker 連接埠 (預設值 4022) 無法連線到指定的站台系統資料庫伺服器、系統或網路時,系統管理員必須檢查是否發生防火牆連接埠或網路連線問題。 請查看 [Configuration Manager 安裝資料夾]\Logs 中的 hman.log,以取得更多資訊。

Element properties:

TargetMicrosoft.SystemCenter2012.ConfigurationManager.SiteServer
Parent MonitorSystem.Health.ConfigurationState
CategoryConfigurationHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter2012.ConfigurationManager.StatusMessage3StateMonitor
RemotableTrue
AccessibilityPublic
Alert Message
防火牆上的 SQL Server 連接埠未開啟
防火牆上的 SQL Server 連接埠並未在 {0} 上開啟。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter2012.ConfigurationManager.SQLFirewall" Accessibility="Public" Enabled="onEssentialMonitoring" Target="SCCM!Microsoft.SystemCenter2012.ConfigurationManager.SiteServer" ParentMonitorID="SystemHealth!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Microsoft.SystemCenter2012.ConfigurationManager.StatusMessage3StateMonitor" ConfirmDelivery="true">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter2012.ConfigurationManager.SQLFirewall_AlertMessageResourceID">
<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="UIGeneratedOpStateId041eb07d0bd74856923c30a008f26e2c" MonitorTypeStateID="Good" HealthState="Success"/>
<OperationalState ID="UIGeneratedOpStateIdd72714adec2247029b632a96f0f3ec2f" MonitorTypeStateID="Warning" HealthState="Warning"/>
<OperationalState ID="UIGeneratedOpStateIde0fec4ba618a4fdbb6eb493eb49cde08" MonitorTypeStateID="Error" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<ComponentName>SMS_HIERARCHY_MANAGER</ComponentName>
<RuleId>8D5E5CC1-CCF5-4c66-BC8A-527C9066161B</RuleId>
<IntervalSeconds>360</IntervalSeconds>
</Configuration>
</UnitMonitor>