Lediga I-noder i procent (SUSE Linux Enterprise Server 12)

Microsoft.Linux.SLES.12.LogicalDisk.PercentFreeInodes.Collection (Rule)

Insamlingsregel för prestandaräknaren för logisk disk\ledigaI-noder i procent

Knowledge Base article:

Sammanfattning

Den här regeln samlar in prestandadata för prestandamåttet Logisk disk\Lediga I-noder i procent. De insamlade värdena är tillgängliga i prestandavyer och rapporter.

Det här måttet visar procentandelen av det totala antaletI-noder i det valda filsystemet som är fria.

Om filsystemet inte använderI-noder returneras värdet 100 procent för procentandelen friaI-noder. Användningen avI-noder i filsystemet beräknas med aktuella lediga och totala värden som kanske inte motsvarar den faktiska användningen för filsystem där noder allokeras dynamiskt, till exempel JFS.

Regeln är inaktiverad som standard. Den kan aktiveras med en åsidosättning med inriktning på en specifik logisk diskinstans eller alla logiska diskinstanser.

Element properties:

TargetMicrosoft.Linux.SLES.12.LogicalDisk
CategoryPerformanceCollection
EnabledFalse
Alert GenerateFalse
RemotableTrue

Member Modules:

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

Source Code:

<Rule ID="Microsoft.Linux.SLES.12.LogicalDisk.PercentFreeInodes.Collection" Enabled="false" Target="Microsoft.Linux.SLES.12.LogicalDisk" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Unix!Microsoft.Unix.WSMan.PerfCounterProvider.Filtered">
<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 Inodes</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(.)='PercentFreeInodes']$</Value>
<PreMapperFilter>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">/DataItem/WsManData/*[local-name(.)='SCX_FileSystemStatisticalInformation']/*[local-name(.)='PercentFreeInodes']</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^[-]?([0-9]*\.[0-9]+|[0-9]+)$</Pattern>
</RegExExpression>
</PreMapperFilter>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>