エージェントのプロセッサ使用率の収集

Microsoft.SystemCenter.HealthService.SCOMpercentageCPUTimeCollection (Rule)

"エージェントのプロセッサ使用率" パフォーマンス カウンターを収集します。

Knowledge Base article:

概要

このルールは、Operations Manager エージェント、およびその関連プロセスの CPU 使用率の合計を計算し、その結果を "Health Service" オブジェクトと“agent processor utilization" パフォーマンス カウンター用のパフォーマンス データとして送信します。

このルールの基礎となっているスクリプトは、Operations Manager エージェントのプロセス (HealthService.exe)、その子のホスト監視プロセス (MonitoringHost.exe)、およびこのホスト監視プロセスの子プロセス (cscript.exe や PowerShell.exe など) を見つけ、CPU 使用率をサンプリングします。計算は 3 回行われ、3 つの連続するサンプルの平均がオペレーション データベースとデータ ウェアハウスに書き込まれます。

エージェントの CPU 使用率計算用にサンプリングされたデータを確認するには、「エージェント パフォーマンス ビュー」を参照してください。

エージェント パフォーマンス ビュー

Element properties:

TargetMicrosoft.SystemCenter.HealthService
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableFalse

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SystemCenter.HealthService.SCOMpercentageCPUTimeCounterDataSource Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.SystemCenter.HealthService.SCOMpercentageCPUTimeCollection" Enabled="true" Target="SCLibrary!Microsoft.SystemCenter.HealthService" ConfirmDelivery="true" Remotable="false" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SystemCenter.HealthService.SCOMpercentageCPUTimeCounterDataSource">
<IntervalSeconds>321</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<SyncTime/>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SCLibrary!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>