論理ディスクの空き領域の割合

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

SUSE Linux Enterprise Server 9 論理ディスクの空き領域の割合モニタ

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>