群集磁盘 - 可用空间监视器(\%)

Microsoft.Windows.Server.ClusterDisksMonitoring.ClusterDisk.FreeSpacePercent (UnitMonitor)

此监视器检查目标群集磁盘的可用空间(\%)。

Knowledge Base article:

摘要

群集磁盘上的可用磁盘空间量超出了阈值。 系统性能可能会受到不利影响并且可能不能在群集磁盘上添加或修改现有文件,直到另有可用空间可用为止。

配置

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

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

原因

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

解决方法

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

Element properties:

TargetMicrosoft.Windows.Server.ClusterDisksMonitoring.ClusterDisk
Parent MonitorMicrosoft.Windows.Server.ClusterDisksMonitoring.ClusterDisk.FreeSpaceMonitorRollup
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.Server.ClusterDisksMonitoring.DiskState.Monitortype
RemotableTrue
AccessibilityPublic
Alert Message
群集磁盘的可用空间警告(\%)
{0}: 名称为 {2} 的群集磁盘 {1} 磁盘空间不足。 超出警告阈值的值是 {4}\% 的可用空间。 (分区: {3})。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.ClusterDisksMonitoring.ClusterDisk.FreeSpacePercent" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.Server.ClusterDisksMonitoring.ClusterDisk" ParentMonitorID="Microsoft.Windows.Server.ClusterDisksMonitoring.ClusterDisk.FreeSpaceMonitorRollup" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.Server.ClusterDisksMonitoring.DiskState.Monitortype" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.ClusterDisksMonitoring.ClusterDisk.FreeSpacePercent.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="Microsoft.Windows.Server.ClusterDisksMonitoring.ClusterDisk"]/ClusterResourceName$</AlertParameter2>
<AlertParameter3>$Target/Property[Type="Microsoft.Windows.Server.ClusterDisksMonitoring.ClusterDisk"]/ClusterDiskName$</AlertParameter3>
<AlertParameter4>$Target/Property[Type="Microsoft.Windows.Server.ClusterDisksMonitoring.ClusterDisk"]/PartitionName$</AlertParameter4>
<AlertParameter5>$Data/Context/Value$</AlertParameter5>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="MonitorOk" MonitorTypeStateID="MonitorOk" HealthState="Success"/>
<OperationalState ID="MonitorWarning" MonitorTypeStateID="MonitorWarning" HealthState="Warning"/>
<OperationalState ID="MonitorError" MonitorTypeStateID="MonitorError" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
<LogSuccessEvent>true</LogSuccessEvent>
<ScriptGroupId>ClusterDiskMonitoring</ScriptGroupId>
<TargetComputer>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</TargetComputer>
<ClusterName>$Target/Property[Type="Microsoft.Windows.Server.ClusterDisksMonitoring.ClusterDisk"]/ClusterName$</ClusterName>
<TimeoutSeconds>300</TimeoutSeconds>
<ClusterResourceName>$Target/Property[Type="Microsoft.Windows.Server.ClusterDisksMonitoring.ClusterDisk"]/ClusterResourceName$</ClusterResourceName>
<CounterName>Free space / Percent</CounterName>
<DriveErrorThreshold>5</DriveErrorThreshold>
<DriveWarningThreshold>10</DriveWarningThreshold>
</Configuration>
</UnitMonitor>