最近已完成分割與清理

Microsoft.SystemCenter.OpsMgrDB.PartitioningAndGroomingMonitor (UnitMonitor)

此監視會偵測是否已連續太多天未順利完成分割與清理程序。

Knowledge Base article:

摘要

在最近的歷程中,為了分割與清理儲存於操作資料庫之資料所執行的處理序並未順利完成。 如果這些處理序無法順利完成的狀況持續發生,操作資料庫的效能將受到負面影響,而導致管理群組整體效能變慢。 最後,操作資料庫將完全填滿,管理群組也將停止運作。

設定

您可覆寫此監視,以提供不同的設定:

原因

產生此警示的原因是因為在最近的歷程內尚未順利完成分割與清理程序。 依預設,此監視設定成若這些程序在前面 2 天內都未順利完成,便會產生警示。 分割與清理程序無法順利完成的部分原因包括下列幾項:

解決方式

下列步驟說明如何針對最常見的原因來疑難排解及解決此問題:

Element properties:

TargetMicrosoft.SystemCenter.OpsMgrDBWatcher
Parent MonitorSystem.Health.ConfigurationState
CategoryConfigurationHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityHigh
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.2007.OpsMgrDB.PartitioningAndGroomingMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
最近未完成分割與清理
伺服器 {0} 上操作資料庫 ({1}) 的分割與清理程序最近未執行或一直失敗。 在產生此警示當時,分割與清理程序已有幾天未曾完成。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.OpsMgrDB.PartitioningAndGroomingMonitor" Accessibility="Public" Enabled="true" Target="SCLibrary!Microsoft.SystemCenter.OpsMgrDBWatcher" ParentMonitorID="Health!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Microsoft.SystemCenter.2007.OpsMgrDB.PartitioningAndGroomingMonitorType" ConfirmDelivery="false">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.OpsMgrDB.PartitioningAndGroomingMonitor.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>High</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="SCLibrary!Microsoft.SystemCenter.OpsMgrDBWatcher"]/DatabaseServerName$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="SCLibrary!Microsoft.SystemCenter.OpsMgrDBWatcher"]/DatabaseName$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="HealthyfulPartitionGroomingProcess" MonitorTypeStateID="UnderThreshold" HealthState="Success"/>
<OperationalState ID="WarningPartitionGroomingProcess" MonitorTypeStateID="WarningThreshold" HealthState="Warning"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>86400</IntervalSeconds>
<Synctime>12:01</Synctime>
<TimeoutSeconds>300</TimeoutSeconds>
<DatabaseServerName>$Target/Property[Type="SCLibrary!Microsoft.SystemCenter.OpsMgrDBWatcher"]/DatabaseServerName$</DatabaseServerName>
<DatabaseName>$Target/Property[Type="SCLibrary!Microsoft.SystemCenter.OpsMgrDBWatcher"]/DatabaseName$</DatabaseName>
<Threshold>2</Threshold>
<TimesBeforeAlert>2</TimesBeforeAlert>
</Configuration>
</UnitMonitor>