Logical Disk \% Free Space

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

SUSE Linux Enterprise Server 9 Logical Disk \% Free Space 監視

Knowledge Base article:

摘要

此監視會檢查所有邏輯磁碟的磁碟可用空間百分比。如果您接收到此監視的警示,可能需要執行動作才能釋放部分磁碟空間並讓系統恢復操作狀態。

原因

狀況不良狀態表示目前的可用空間百分比偏低。這可能是應用程式記錄資料過多所造成。

解決方式

從 Operations Manager 主控台檢視磁碟容量。判斷最近是否曾安裝任何新應用程式。檢閱所有記錄檔,找出看似過大的記錄。如果有,請判斷這些記錄是目前的記錄或歷程記錄。

若要補救這種情況,請考慮使用 tar 公用程式來壓縮 (zip) 記錄檔並釋放磁碟空間。若要建立 tar 檔案,請使用 'tar -cvf [目的地檔案名稱].tar [來源路徑/檔案]' 命令。

磁碟容量

Element properties:

TargetMicrosoft.Linux.SLES.9.LogicalDisk
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Unix.WSMan.Performance.Filtered.Average.Threshold.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
可用空間百分比過低
[Logical Disk\\% Free Space] 效能計數器已超過閾值。以下的值已超過閾值:{0}\% 可用空間。
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.PerformanceState">
<Category>PerformanceHealth</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>//*[local-name()="Name"]</InstanceProperty>
<Value>$Data///*[local-name()="PercentFreeSpace"]$</Value>
<Threshold>5</Threshold>
<NumSamples>1</NumSamples>
</Configuration>
</UnitMonitor>