邏輯磁碟可用空間 (\%) 不足

Microsoft.Windows.Server.10.0.LogicalDisk.PercentageFreeSpace (UnitMonitor)

監視邏輯磁碟上剩餘的可用空間百分比。

Knowledge Base article:

摘要

Logical Disk % Free Space 監視可供操作員用來設定各種系統和非系統邏輯磁碟區的閾值。此外並可針對警告和錯誤狀態設定不同的閾值。

設定

Logical Disk % Free Space 監視的預設閾值包括:

系統磁碟機可用空間閾值 (預設值)

參數

預設值

系統磁碟機錯誤百分比閾值

5

系統磁碟機警告百分比閾值

10

非系統磁碟機可用空間閾值 (預設值)

參數

預設值

非系統磁碟機錯誤百分比閾值

5

非系統磁碟機警告百分比閾值

10

請注意,覆寫可用來變更上述定義的任一種閾值。此外,這些閾值可套用到管理群組中所有的邏輯磁碟區執行個體,或者於必要時亦可針對特定的邏輯磁碟區執行個體單獨定義閾值。

原因

當現有的檔案大小變大以及加入新檔案時,都會佔用邏輯磁碟的可用空間。 當邏輯磁碟上的可用空間容量低於閾值時,邏輯磁碟的狀態將會改變。

解決方式

若要增加可用磁碟空間的容量,請執行下列一項或多項操作:

若要檢視磁碟空間最近的歷程,可使用下列檢視:

啟動磁碟容量檢視

Element properties:

TargetMicrosoft.Windows.Server.10.0.LogicalDisk
Parent MonitorMicrosoft.Windows.Server.10.0.LogicalDisk.FreeSpaceMonitorRollup
CategoryCustom
EnabledFalse
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.Server.10.0.DiskState.Monitortype
RemotableTrue
AccessibilityPublic
Alert Message
邏輯磁碟可用空間百分比過低
電腦 {1} 上的磁碟 {0} 已用盡磁碟空間。超過閾值的值是 {2}\% 可用空間。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.10.0.LogicalDisk.PercentageFreeSpace" Accessibility="Public" Enabled="false" Target="ServervNext!Microsoft.Windows.Server.10.0.LogicalDisk" ParentMonitorID="Microsoft.Windows.Server.10.0.LogicalDisk.FreeSpaceMonitorRollup" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.Server.10.0.DiskState.Monitortype" ConfirmDelivery="true">
<Category>Custom</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.10.0.LogicalDisk.PercentageFreeSpace.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="Windows!Microsoft.Windows.LogicalDevice"]/DeviceID$</AlertParameter1>
<AlertParameter2>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter2>
<AlertParameter3>$Data/Context/SampleValue$</AlertParameter3>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="UnderWarningThresholds" MonitorTypeStateID="UnderWarningThresholds" HealthState="Success"/>
<OperationalState ID="OverWarningUnderErrorThresholds" MonitorTypeStateID="OverWarningUnderErrorThresholds" HealthState="Warning"/>
<OperationalState ID="OverErrorThresholds" MonitorTypeStateID="OverErrorThresholds" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<DiskLabel>$Target/Property[Type="Windows!Microsoft.Windows.LogicalDevice"]/DeviceID$</DiskLabel>
<CounterName>PercentFree</CounterName>
<IntervalSeconds>900</IntervalSeconds>
<NumSamples>4</NumSamples>
<SystemDriveWarningThreshold>10</SystemDriveWarningThreshold>
<SystemDriveErrorThreshold>5</SystemDriveErrorThreshold>
<NonSystemDriveWarningThreshold>10</NonSystemDriveWarningThreshold>
<NonSystemDriveErrorThreshold>5</NonSystemDriveErrorThreshold>
</Configuration>
</UnitMonitor>