SQL Server 磁碟空間監視

Microsoft.SystemCenter2012.ConfigurationManager.SQLDBSpace (UnitMonitor)

此監視會檢查 SQL Server 伺服器上的可用磁碟空間是否足夠。

Knowledge Base article:

摘要

支援 Configuration Manager 站台伺服器的 SQL Server 資料庫執行個體可能會將資料庫檔案放在多部磁碟機或是單一磁碟機上。 資料庫中包含的資料包括應用程式和套件中繼資料、設定項目定義、相容性結果,以及該 Configuration Manager 站台伺服器支援之所有用戶端的硬體和軟體清查結果等資料。

Configuration Manager 會監視設定為支援其站台伺服器 SQL Server 資料庫執行個體的所有磁碟機上的可用磁碟機空間容量。Configuration Manager 預期 Configuration Manager 系統管理員設定供站台伺服器之 SQL Server 資料庫執行個體使用的資料庫最小可用磁碟空間 (預設閾值:5GB – 重大;10GB - 警告) 應超過設定的閾值下限。

原因

解決方式

SQL Server 資料庫系統管理員必須排除暫存資料庫檔案中的資料、縮小資料庫檔案或配置額外的存放裝置給此站台的 SQL Server 資料庫執行個體,以釋放額外的磁碟空間。 SQL Server 資料庫系統管理員應該與 Configuration Manager 系統管理員共同合作,找出最佳解決方法。 請查看 [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
CommentSIV:GEN0208

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter2012.ConfigurationManager.SQLDBSpace" Comment="SIV:GEN0208" 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.SQLDBSpace_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="UIGeneratedOpStateIdff252e7667e34f9e9a9c6c2ac0652a1e" MonitorTypeStateID="Good" HealthState="Success"/>
<OperationalState ID="UIGeneratedOpStateId7ae1bf0a4fa04a67bb7855e09a0c6f49" MonitorTypeStateID="Warning" HealthState="Warning"/>
<OperationalState ID="UIGeneratedOpStateId4daaf19c706d4fb7b8aeb5b4bc996ef3" MonitorTypeStateID="Error" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<ComponentName>SMS_HIERARCHY_MANAGER</ComponentName>
<RuleId>6FD0B53A-35DA-4da1-84C9-A9E1B6C12828</RuleId>
<IntervalSeconds>360</IntervalSeconds>
</Configuration>
</UnitMonitor>