Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SNMP >4GB memory values in linux

Status
Not open for further replies.

doggammit76

Technical User
Oct 15, 2002
82
SG
Hi folks

Have an issue here, was wondering if anyone has faced it. If so, how to fix it?

I have a linux box(suse 9 ent. server) which is fitted with 16GB of ram. Problem I have is that the SNMP value reports that it only has 4GB of ram.

I did a "walk" with Ipmonitor and value reported is 4194303. The value of "free" command on the box reports 16569208.

Any thoughts would be appreciated.


 
I have found that the HOST mib has the value as integer which causing false reading, overflow of integer. I have been using the UCD mib, .1.3.6.1.4.1.2021, to get CPU and Memory usage. This contains the Memory in kBytes.
 
hi davidpaul

Appreciate the response.

I guess it is what I used too that was reflecting the flawed RAM value.

Name Oid Value
memIndex.0 1.3.6.1.4.1.2021.4.1.0 0
memErrorName.0 1.3.6.1.4.1.2021.4.2.0 swap
memTotalSwap.0 1.3.6.1.4.1.2021.4.3.0 4192944
memAvailSwap.0 1.3.6.1.4.1.2021.4.4.0 4192784
memTotalReal.0 1.3.6.1.4.1.2021.4.5.0 4149144
memAvailReal.0 1.3.6.1.4.1.2021.4.6.0 18760
memTotalFree.0 1.3.6.1.4.1.2021.4.11.0 4211544
memMinimumSwap.0 1.3.6.1.4.1.2021.4.12.0 16000
memShared.0 1.3.6.1.4.1.2021.4.13.0 0
memBuffer.0 1.3.6.1.4.1.2021.4.14.0 29152
memCached.0 1.3.6.1.4.1.2021.4.15.0 3721088
memSwapError.0 1.3.6.1.4.1.2021.4.100.0 0
memSwapErrorMsg.0 1.3.6.1.4.1.2021.4.101.0

Thank you.

 
There is also the HOST-RESOURCES-MIB::hrStorageAllocationUnits value which will give you the storage unit size ( 256 bytes, 2048 bytes, etc).
You may have to adjust the hrStorageSize and hrStorageUsed value according to the hrStorageAllocationUnits
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top