OpManager ナレッジベース

WMIによるCPU使用率と、しきい値違反アラートが発生した時に表示されるtop3プロセスのCPU使用率の仕様について教えて欲しい


要望

WMIによるCPU使用率としきい値違反アラートが発生した時に表示される
top3プロセスのCPU使用率の仕様について教えて欲しい。

解説

WMIによるCPU使用率監視の仕様について

OpManagerでは、Win32_Processor クラスの LoadPercentage プロパティを参照します。
以下の通り、装置のCPU使用率は瞬間値を取得します。

参考情報)
Load capacity of each processor, averaged to the last second.
Processor loading refers to the total computing burden for each processor at one time. This property is inherited from CIM_Processor.

参考URL)
http://msdn.microsoft.com/ja-jp/library/aa394373(v=vs.85).aspx#fbid=CdSr7LMRjOG

WMIによるTOP3プロセスのCPU使用率の仕様について

OpManagerではWin32_PerfRawData_PerfProc_Process クラスの
Timestamp_Sys100NS、PercentProcessorTime プロパティを参照し、以下の計算式で求めます。

計算式)

((PTn - PTn-1) / (TSn - TSn-1)) * (100 / CPUプロセッサ数)
PTn : n回目計測時の PercentProcessorTime 値
TSn : n回目計測時の Timestamp_Sys100NS 値

OpManagerでは瞬時にPT1,TS1をそれぞれ取得すると即時にPT2,TS2の値を取得し、上記の計算式から値を求めます。
その値をTOP3プロセスのCPU使用率として表示します。

参考情報)
PercentProcessorTime
Returns elapsed time that all of the threads of this process used the processor to execute instructions in 100 nanoseconds ticks.
An instruction is the basic unit of execution in a computer, a thread is the object that executes instructions, and a process is the object created when a program is run.
Code executed to handle some hardware interrupts and trap conditions is included in this count.

参考URL)
http://msdn.microsoft.com/en-us/library/aa394323(v=vs.85).aspx

確認手順)
1. [Windowsスタートメニュー]のテキストボックスで wbemtest.exe と入力し
[Windows Management Instrumentation テスト] ウィンドウを表示します。

2. [接続]ボタンを押下し、対象装置について以下情報を入力後、[接続]ボタンを押下します。
[名前空間] : 「\\[hostname]\root\cimv2」
[ユーザー] : 「管理者権限のユーザ名」
[パスワード] : パスワード

3. [クエリ]ボタンを押下し、以下クエリを入力します。
select * from Win32_PerfRawData_PerfProc_Process
4.表示されたプロセスをダブルクリック
5.表示された画面にて、MOFの表示ボタンを押下
6.上記、計算式)を確認します。

 

【対応リリース】 10.2以降

★-----------------------------------------------------------------------------★
OpManager 製品紹介ページはこちら ↓
https://www.manageengine.jp/products/OpManager/
★-----------------------------------------------------------------------------★