HOST-RESOURCES-MIBによるSNMPメモリ使用率監視の仕様
作成日:2008年7月7日 | 更新日:2024年3月22日
概要
HOST-RESOURCES-MIBによるSNMPメモリ使用率監視の仕様についてご説明いたします。
解説
HOST-RESOURCES-MIB
HOST-RESOURCES-MIBを使用したメモリ使用率監視では、以下のOIDを使用します。
- hrStorageType - .1.3.6.1.2.1.25.2.3.1.2
- hrStorageAllocationUnits - .1.3.6.1.2.1.25.2.3.1.4
- hrStorageUsed - .1.3.6.1.2.1.25.2.3.1.6
メモリ使用率(%)は以下の計算式で求められます。
(hrStorageAllocationUnits * hrStorageUsed)/(Total Ram Size * 1024 * 1024) *100
計算式内のTotal Ram Size は、装置概要ページ内[装置概要]欄のRAMサイズの値です。
例:
hrStorageType:
hrStorageType.1:hrStorageFixedDisk
hrStorageType.2:hrStorageCompactDisc
hrStorageType.3:hrStorageVirtualMemory
hrStorageType.4:hrStorageRam
hrStorageAllocationUnits
hrStorageAllocationUnits.1:4096
hrStorageAllocationUnits.2:0
hrStorageAllocationUnits.3:65536
hrStorageAllocationUnits.4:65536
hrStorageUsed
hrStorageUsed.1:10858635
hrStorageUsed.2:0
hrStorageUsed.3:19254
hrStorageUsed.4:14705
Total Ram Size=1024
hrStorageType.4:hrStorageRamに対応するのは、
・hrStorageAllocationUnits.4:65536
・hrStorageUsed.4:14705
となります。
計算式は以下の通りです。
Memory Utilization=(65536*14705)/(1024*1024*1024)
=(89)*100=89%
補足1
上記のメモリ使用率の取得方法で用いられるいずれかのOIDから値が取得できないことがある場合、以下の方法でメモリ使用率を取得します。
1.HOST-RESOURCES-MIBのhrSWRunPerfMem(.1.3.6.1.2.1.25.5.1.1.2)のOIDを取得
2.1.で取得した情報の和を計算
3.取得した情報を1024で割る(単位換算)
4.装置スナップショットの装置情報-資産情報に表示されているRAMの値で割る
5.最後に100を掛ける
補足2
UCD-SNMP-MIBを使用するメモリ使用率監視の場合(※Linuxの場合)、
freeコマンド、used memory/total memory*100の値を表示します。
★-----------------------------------------------------------------------------★
OpManager 製品紹介ページはこちら ↓
https://www.manageengine.jp/products/OpManager/
★-----------------------------------------------------------------------------★