這項規則會收集 Apache HTTP Server 處理序的總 CPU 百分比
這項規則會收集 Apache HTTP Server\總 CPU 使用量百分比效能計數器的效能資料。您可以在效能檢視和報表中存取收集的值。
這個標準會公開在 Linux 伺服器上執行之 Apache HTTP Server 處理序的總 CPU 使用量百分比。
Target | Microsoft.ApacheHTTPServer.ManagedServer.Unix |
Category | PerformanceCollection |
Enabled | True |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Oss.WSMan.PerfCounterProvider | Default |
WriteToDB | WriteAction | Microsoft.SystemCenter.CollectPerformanceData | Default |
WriteToDW | WriteAction | Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData | Default |
<Rule ID="Microsoft.ApacheHTTPServer.ManagedServer.Unix.TotalPctCPU.Collection" Target="Microsoft.ApacheHTTPServer.ManagedServer.Unix" Remotable="true" Enabled="onStandardMonitoring">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Oss!Microsoft.Oss.WSMan.PerfCounterProvider">
<Interval>300</Interval>
<TargetSystem>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/Apache_HTTPDServerStatistics?__cimnamespace=root/apache</Uri>
<Filter/>
<SplitItems>true</SplitItems>
<ObjectName>Apache HTTP Server</ObjectName>
<CounterName>Total Pct CPU Usage</CounterName>
<InstanceName>$Data/WsManData/*[local-name(.)='Apache_HTTPDServerStatistics']/*[local-name(.)='InstanceID']$</InstanceName>
<Value>$Data/WsManData/*[local-name(.)='Apache_HTTPDServerStatistics']/*[local-name(.)='TotalPctCPU']$</Value>
<PreMapperFilter>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">/DataItem/WsManData/*[local-name(.)='Apache_HTTPDServerStatistics']/*[local-name(.)='TotalPctCPU']</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^.+</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>