操作資料庫可用空間 (\%)

Microsoft.SystemCenter.OpsMgrDBPercentFreeSpaceMonitor (UnitMonitor)

監視操作資料庫中剩餘的可用空間百分比。

Knowledge Base article:

摘要

操作資料庫可用空間用盡。需要足夠的可用空間,以確保該監視能不間斷地繼續進行。

原因

儲存到操作資料庫的資料量不斷增加,可能是由以下原因所造成:

解決方式

增大資料庫檔案以增加可用空間量。

Element properties:

TargetMicrosoft.SystemCenter.OpsMgrDBWatcher
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityHigh
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.OpsMgrDBPercentFreeSpaceMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Ops 資料庫可用空間不足
Operations Manager 操作資料庫可用空間百分比為 {0}\%。Ops 資料庫伺服器名稱: {1} Ops 資料庫名稱: {2}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.OpsMgrDBPercentFreeSpaceMonitor" Accessibility="Public" Enabled="true" Target="SCLibrary!Microsoft.SystemCenter.OpsMgrDBWatcher" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Microsoft.SystemCenter.OpsMgrDBPercentFreeSpaceMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.OpsMgrDBPercentFreeSpaceMonitor.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>High</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Property[@Name='DBPercentFreeSpace']$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="SCLibrary!Microsoft.SystemCenter.OpsMgrDBWatcher"]/DatabaseServerName$</AlertParameter2>
<AlertParameter3>$Target/Property[Type="SCLibrary!Microsoft.SystemCenter.OpsMgrDBWatcher"]/DatabaseName$</AlertParameter3>
<AlertParameter4>$Data/Context/Property[@Name='Error']$</AlertParameter4>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="UnderErrorThreshold" MonitorTypeStateID="UnderErrorThreshold" HealthState="Error"/>
<OperationalState ID="OverErrorThresholdUnderWarningThreshold" MonitorTypeStateID="OverErrorThresholdUnderWarningThreshold" HealthState="Warning"/>
<OperationalState ID="OverWarningThreshold" MonitorTypeStateID="OverWarningThreshold" HealthState="Success"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>900</IntervalSeconds>
<DatabaseServerName>$Target/Property[Type="SCLibrary!Microsoft.SystemCenter.OpsMgrDBWatcher"]/DatabaseServerName$</DatabaseServerName>
<DatabaseName>$Target/Property[Type="SCLibrary!Microsoft.SystemCenter.OpsMgrDBWatcher"]/DatabaseName$</DatabaseName>
<ErrorThreshold>20</ErrorThreshold>
<WarningThreshold>40</WarningThreshold>
<TimeoutSeconds>300</TimeoutSeconds>
</Configuration>
</UnitMonitor>