help with hrStorage query

"booker" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <001501c6a9ea$bca5c620$1901020a@megatokyo>
Hello,

 

I'm running into a problem with net-snmp's output of Memory (Ram).  The box
has 4 Megabytes of ram but net-snmp reports something differently.  What I
think I'm seeing is that net snmp is reporting both the total size and used
incorrectly.  I'm trying to get an intermapper probe to work and it's
calculating the memory used using this formula:

 

UsedKB = (hrStorageUsed / 1024) * hrStorageAllocationUnits

 

Dartware is claiming there's a bug in Net-Snamp and it is reporting the
vaule incorrectly because of a division bug for values higher than 2GB ram.

 

Need help, Mahalo Booker.  Below, is the information I gathered.

 

 

I'm running:

net-snmp-5.0.9-2.30E.12

Red Hat Enterprise Linux ES release 3 (Taroon Update 4) (2.4.21-27.ELsmp #1)

Dell Poweredge 1850

 

>From top I have this info of Ram:

Mem:  4095400k av, 4070896k used,   24504k free,       0k shrd,  208632k
buff

                   2257112k actv, 1151872k in_d,   90048k in_c

 

Below is a partial output of snmpwalk:

hrStorageIndex.1 = INTEGER: 1

hrStorageIndex.2 = INTEGER: 2

hrStorageIndex.3 = INTEGER: 3

hrStorageIndex.4 = INTEGER: 4

hrStorageIndex.101 = INTEGER: 101

hrStorageIndex.102 = INTEGER: 102

hrStorageIndex.103 = INTEGER: 103

hrStorageType.1 = OID: hrStorageFixedDisk

hrStorageType.2 = OID: hrStorageFixedDisk

hrStorageType.3 = OID: hrStorageFixedDisk

hrStorageType.4 = OID: hrStorageFixedDisk

hrStorageType.101 = OID: hrStorageRam

hrStorageType.102 = OID: hrStorageVirtualMemory

hrStorageType.103 = OID: hrStorageOther

hrStorageDescr.1 = STRING: /

hrStorageDescr.2 = STRING: /apps

hrStorageDescr.3 = STRING: /boot

hrStorageDescr.4 = STRING: /backup

hrStorageDescr.101 = STRING: Real Memory

hrStorageDescr.102 = STRING: Swap Space

hrStorageDescr.103 = STRING: Memory Buffers

hrStorageAllocationUnits.1 = INTEGER: 4096 Bytes

hrStorageAllocationUnits.2 = INTEGER: 4096 Bytes

hrStorageAllocationUnits.3 = INTEGER: 1024 Bytes

hrStorageAllocationUnits.4 = INTEGER: 8192 Bytes

hrStorageAllocationUnits.101 = INTEGER: 1024 Bytes

hrStorageAllocationUnits.102 = INTEGER: 1024 Bytes

hrStorageAllocationUnits.103 = INTEGER: 256 Bytes

hrStorageSize.1 = INTEGER: 10321707

hrStorageSize.2 = INTEGER: 10321707

hrStorageSize.3 = INTEGER: 505605

hrStorageSize.4 = INTEGER: 420118126

hrStorageSize.101 = INTEGER: 2097151

hrStorageSize.102 = INTEGER: 2097151

hrStorageUsed.1 = INTEGER: 1745574

hrStorageUsed.2 = INTEGER: 3677915

hrStorageUsed.3 = INTEGER: 19091

hrStorageUsed.4 = INTEGER: 233087960

hrStorageUsed.101 = INTEGER: 2097151

hrStorageUsed.102 = INTEGER: 0

hrStorageAllocationFailures.1 = Counter32: 0

hrStorageAllocationFailures.2 = Counter32: 0

hrStorageAllocationFailures.3 = Counter32: 0

hrStorageAllocationFailures.4 = Counter32: 0

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.