Windows Server 2008 逻辑磁盘可用空间(\%)不足

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

监视逻辑磁盘上剩余的可用空间百分比。

Knowledge Base article:

摘要

Logical Disk % Free Space 监视器使操作员能够设置不同的系统和非系统逻辑磁盘卷阈值。 另外,可对警告和错误状态设置独立的阈值。

配置

Logical Disk % Free Space 监视器的默认阈值包括:

系统驱动器可用空间阈值(默认值)

参数

默认值

系统驱动器错误百分比阈值

5

系统驱动器警告百分比阈值

10

非系统驱动器可用空间阈值(默认值)

参数

默认值

非系统驱动器错误百分比阈值

5

非系统驱动器警告百分比阈值

10

请注意,可使用“替代”来更改上面定义的任何阈值。 另外,这些阈值可应用于管理组中的所有逻辑磁盘卷实例,或者需要时可对特定逻辑磁盘卷实例定义独立的阈值。

原因

在现有文件大小增大且添加新文件时,会占用逻辑磁盘上的可用空间。 当逻辑磁盘上的可用空间量低于阈值时,逻辑磁盘的状态将发生更改。

解决方法

若要增加可用磁盘空间量,请执行以下一项或多项操作:

要查看最近磁盘空间历史记录,可使用以下视图:

启动磁盘容量视图

Element properties:

TargetMicrosoft.Windows.Server.2008.LogicalDisk
Parent MonitorMicrosoft.Windows.Server.2008.LogicalDisk.FreeSpaceMonitorRollup
CategoryCustom
EnabledFalse
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.Server.2008.DiskState.Monitortype
RemotableTrue
AccessibilityPublic
Alert Message
逻辑磁盘可用空间百分比低
计算机 {1} 上的磁盘 {0} 空间不足。 超出阈值的值为 {2}\% 的可用空间。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.2008.LogicalDisk.PercentageFreeSpace" Accessibility="Public" Enabled="false" Target="Server2008!Microsoft.Windows.Server.2008.LogicalDisk" ParentMonitorID="Microsoft.Windows.Server.2008.LogicalDisk.FreeSpaceMonitorRollup" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.Server.2008.DiskState.Monitortype" ConfirmDelivery="true">
<Category>Custom</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.2008.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>