Used MBytes (Citrix XenServer 6)

Microsoft.Linux.XenServer.6.OperatingSystem.UsedMBytesSwap.Collection (Rule)

Collection rule for the performance counter Swap Space\Used MBytes

Knowledge Base article:

Summary

This rule collects performance data for the Used Swap in MBytes performance counter. This information is collected and is exposed to one or more Views and/or Reports.

The Used Swap in MBytes performance counter exposes the total amount of used swap space in MBytes.

Element properties:

TargetMicrosoft.Linux.XenServer.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.XenServer.6.OperatingSystem.UsedMBytesSwap.Collection" Target="Microsoft.Linux.XenServer.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 MBytes</CounterName>
<InstanceName/>
<Value>$Data///*[local-name()="UsedSwap"]$</Value>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>