\% Used Swap Space (Red Hat Enterprise Linux Server 6)

Microsoft.Linux.RHEL.6.OperatingSystem.PercentUsedSwapSpace.Collection (Rule)

Swap Space\\% Used Swap Space 性能计数器收集规则

Knowledge Base article:

摘要

此规则收集 Swap Space\% Used Swap Space 性能计数器的性能数据。在性能视图和报表中可以访问收集的值。

此指标显示已用交换空间总量在系统总交换空间中所占的百分比。

已用交换空间的百分比值是用总交换空间减去可用交换空间,然后将结果与操作系统报告的总交换空间值进行比较计算出来的。

Element properties:

TargetMicrosoft.Linux.RHEL.6.OperatingSystem
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Unix.WSMan.PerfCounterProvider Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.Linux.RHEL.6.OperatingSystem.PercentUsedSwapSpace.Collection" Target="Microsoft.Linux.RHEL.6.OperatingSystem" Enabled="true" Remotable="true">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Unix!Microsoft.Unix.WSMan.PerfCounterProvider">
<TargetSystem>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_MemoryStatisticalInformation?__cimnamespace=root/scx</Uri>
<Filter/>
<SplitItems>false</SplitItems>
<Interval>300</Interval>
<ObjectName>Swap Space</ObjectName>
<CounterName>% Used Swap Space</CounterName>
<InstanceName/>
<Value>$Data/WsManData/*[local-name(.)='SCX_MemoryStatisticalInformation']/*[local-name(.)='PercentUsedSwap']$</Value>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>