逻辑磁盘可用空间监视器

Microsoft.Windows.Server.10.0.Legacy.LogicalDisk.FreeSpace.Monitor (UnitMonitor)

监视逻辑磁盘上剩余的可用空间百分比和可用的兆字节数。仅当百分比可用空间阈值和可用兆字节数阈值都很达到时,才会将磁盘标志为磁盘可用空间低。

Knowledge Base article:

摘要

逻辑磁盘卷上的可用磁盘空间量已降低到阈值以下。

配置

“逻辑磁盘可用空间”监视例程是一种配置度高的解决方案,它使操作员能够设置不同的系统和非系统逻辑磁盘卷阈值。另外,可对警告和错误状态设置独立的阈值。

由于逻辑磁盘卷大小可能会相差几 GB 到许多 TB 甚至更多,“逻辑磁盘可用空间”监视例程要求操作员指示基于 MB 和百分比的阈值,必须在到达警告和错误阈值之前发送这些阈值。这意味着要达到阈值,必须突破系统或非系统驱动器的基于 MB 和百分比的阈值。

“逻辑磁盘可用空间”监视例程的默认阈值如下:

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

原因

系统性能可能会受到不利影响并且可能不能在逻辑磁盘卷上添加或修改现有文件,直到另有可用空间可用为止。

解决方法

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

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

启动磁盘容量视图

Element properties:

TargetMicrosoft.Windows.Server.10.0.LogicalDisk
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.Server.10.0.Legacy.LogicalDisk.FreeSpace.Monitortype
RemotableTrue
AccessibilityPublic
Alert Message
逻辑磁盘可用空间不足
计算机 {1} 上的磁盘 {0} 空间不足。超出阈值的值是 {2}\% 可用空间和 {3} 可用兆字节。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.10.0.Legacy.LogicalDisk.FreeSpace.Monitor" Accessibility="Public" Enabled="true" Target="ServervNext!Microsoft.Windows.Server.10.0.LogicalDisk" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.Server.10.0.Legacy.LogicalDisk.FreeSpace.Monitortype" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.10.0.Legacy.LogicalDisk.FreeSpace.Monitor.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/Property[@Name='PctFree']$</AlertParameter3>
<AlertParameter4>$Data/Context/Property[@Name='MbFree']$</AlertParameter4>
</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>
<IntervalSeconds>3600</IntervalSeconds>
<TargetComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</TargetComputerName>
<SystemDriveWarningMBytesThreshold>500</SystemDriveWarningMBytesThreshold>
<SystemDriveWarningPercentThreshold>10</SystemDriveWarningPercentThreshold>
<SystemDriveErrorMBytesThreshold>300</SystemDriveErrorMBytesThreshold>
<SystemDriveErrorPercentThreshold>5</SystemDriveErrorPercentThreshold>
<NonSystemDriveWarningMBytesThreshold>2000</NonSystemDriveWarningMBytesThreshold>
<NonSystemDriveWarningPercentThreshold>10</NonSystemDriveWarningPercentThreshold>
<NonSystemDriveErrorMBytesThreshold>1000</NonSystemDriveErrorMBytesThreshold>
<NonSystemDriveErrorPercentThreshold>5</NonSystemDriveErrorPercentThreshold>
<DiskLabel>$Target/Property[Type="Windows!Microsoft.Windows.LogicalDevice"]/DeviceID$</DiskLabel>
<TimeoutSeconds>360</TimeoutSeconds>
<DebugFlag>false</DebugFlag>
</Configuration>
</UnitMonitor>