George Chelidze wrote:
> Hello,
> 
> I am using up2date Debian etch with 2.6.21.5 kernel and snmpd 5.2.3-7. I
> am trying to monitor total free memory through snmp. Below is a simple
> output:
> 
> ---- CUT HERE ----
> # snmpwalk -c <community> -v 2c localhost memory && free
> UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
> UCD-SNMP-MIB::memErrorName.0 = STRING: swap
> UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 3903672
> UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 3903624
> UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 2076132
> UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 91948
> UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 3995572
> UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000
> UCD-SNMP-MIB::memShared.0 = INTEGER: 0
> UCD-SNMP-MIB::memBuffer.0 = INTEGER: 207036
> UCD-SNMP-MIB::memCached.0 = INTEGER: 1509916
> UCD-SNMP-MIB::memSwapError.0 = INTEGER: 0
> UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING:
>             total       used       free     shared    buffers     cached
> Mem:       2076132    1984184      91948          0     207036    1509916
> -/+ buffers/cache:     267232    1808900
> Swap:      3903672         48    3903624
> ---- CUT HERE ----
> 
> As you can see UCD-SNMP-MIB::memTotalFree.0 is wrong. free reports
> correct values. Is it a known issue and if yes is there any known
> workaround? Is this _BUG_ related to snmpd or kernel? Any information is
> appreciated.
> 
> Thanks in advance,
> 
> George
> 
> 

Greetings George:

I'm not sure that I see what the problem is.  memTotalFree is reporting
the amount of memory that you could (theoretically) allocate - the
remaining available real memory and the available swap space.  The
numbers that you have listed from snmp seem to match the number from
free pretty well.

-Scott


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to