Logical Disk \% Free Space

Microsoft.Linux.SLES.9.LogicalDisk.PercentFreeSpace.Monitor (UnitMonitor)

SUSE Linux Enterprise Server 9 Logical Disk \% Free Space Monitor

Knowledge Base article:

Summary

The percentage of free space on the logical disk (file system) is low. System performance may be adversely affected, and the ability to add or modify existing files on the file system may be at risk until additional free space is made available.

The file system space reserved for the root user is not included in the calculated free space. File system space usage is calculated with current free and total values, which may not accurately represent true usage for file systems that dynamically allocate space, such as ZFS.

The monitor threshold is analyzed against an average of values returned in polls to the agent, where the Number of Samples parameter controls the number of samples included in the calculation of the average.

This monitor has been superseded by the corresponding Logical Disk Free Space monitor, which implements configurable Warning and Error free space thresholds by both percentage and megabyte. If the corresponding Logical Disk Free Space monitor is enabled, disable this monitor with an override.

Configuration

Default Configuration

Parameter

Default Value

Threshold

5

Interval (seconds)

300

Number of Samples

1

Overrides can be used to change the parameter values defined above for all instances or for specific instances or groups.

Causes

When existing files grow in size and the new files are added, the free space is taken up on a file system. When the amount of free space on the file system falls below the threshold, the state for the Logical Disk will change.

Resolutions

To increase the amount of available disk space, do one or more of the following:

To view recent file system capacity history you can use the following view:

Disk Capacity

Element properties:

TargetMicrosoft.Linux.SLES.9.LogicalDisk
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Unix.WSMan.Performance.Filtered.Average.Threshold.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
\% Free Space is too low
The threshold for the Logical Disk\\% Free Space performance counter has been exceeded. The value that exceeded the threshold is: {0}\% Free Space.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Linux.SLES.9.LogicalDisk.PercentFreeSpace.Monitor" Accessibility="Public" Target="Microsoft.Linux.SLES.9.LogicalDisk" TypeID="Unix!Microsoft.Unix.WSMan.Performance.Filtered.Average.Threshold.MonitorType" Enabled="true" ParentMonitorID="SystemHealth!System.Health.AvailabilityState">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Linux.SLES.9.LogicalDisk.PercentFreeSpace.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Value$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState HealthState="Error" MonitorTypeStateID="UnderThreshold" ID="UnderThreshold"/>
<OperationalState HealthState="Success" MonitorTypeStateID="OverThreshold" ID="OverThreshold"/>
</OperationalStates>
<Configuration>
<TargetSystem>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_FileSystemStatisticalInformation?__cimnamespace=root/scx</Uri>
<Filter/>
<SplitItems>true</SplitItems>
<Interval>300</Interval>
<ObjectName>Logical Disk</ObjectName>
<CounterName>% Free Space</CounterName>
<InstanceName>$Target/Property[Type="Unix!Microsoft.Unix.LogicalDevice"]/DeviceID$</InstanceName>
<InstanceProperty>/DataItem/WsManData/*[local-name(.)='SCX_FileSystemStatisticalInformation']/*[local-name(.)='Name']</InstanceProperty>
<Value>$Data/WsManData/*[local-name(.)='SCX_FileSystemStatisticalInformation']/*[local-name(.)='PercentFreeSpace']$</Value>
<Threshold>5</Threshold>
<NumSamples>1</NumSamples>
</Configuration>
</UnitMonitor>