[mrtg] quick question about adding values from snmp

hubert depesz lubaczewski depesz at depesz.pl
Sat May 26 09:53:53 MEST 2001


hi
i'd liekt o show on a graph total amount of free ram plus amount of ram used by cache and buffers.
for example:
$ free
             total       used       free     shared    buffers     cached
Mem:        517484     360380     157104      91640     183508      49876
-/+ buffers/cache:     126996     390488
Swap:      2136568      29956    2106612

and i'd like to be able to show this "390488".
my snmp is
$ rpm -qa | grep -i snmp
ucd-snmp-static-4.2.1-6
ucd-snmp-devel-4.2.1-6
ucd-snmp-utils-4.2.1-6
ucd-snmp-libs-4.2.1-6
ucd-snmp-4.2.1-6

and gives my only this information:
enterprises.ucdavis.memory.memIndex.0 = 0
enterprises.ucdavis.memory.memErrorName.0 = swap
enterprises.ucdavis.memory.memTotalSwap.0 = 2136568
enterprises.ucdavis.memory.memAvailSwap.0 = 2106672
enterprises.ucdavis.memory.memTotalReal.0 = 517484
enterprises.ucdavis.memory.memAvailReal.0 = 141140
enterprises.ucdavis.memory.memTotalFree.0 = 2247812
enterprises.ucdavis.memory.memMinimumSwap.0 = 0
enterprises.ucdavis.memory.memShared.0 = 93444
enterprises.ucdavis.memory.memBuffer.0 = 183704
enterprises.ucdavis.memory.memCached.0 = 64588
enterprises.ucdavis.memory.memSwapError.0 = 0
enterprises.ucdavis.memory.memSwapErrorMsg.0 = 

of cource i have to add enterprises.ucdavis.memory.memAvailReal.0 and enterprises.ucdavis.memory.memBuffer.0 and enterprises.ucdavis.memory.memCached.0, but i have no clue on how to do it.
i tried with putting it in target field with "+" sign but it doesn't work.
can this be done?

depesz

-- 
hubert depesz lubaczewski                          http://www.depesz.pl/
------------------------------------------------------------------------
     najwspanialszą rzeczą jaką dało nam nowoczesne społeczeństwo,
      jest niesamowita wręcz łatwość unikania kontaktów z nim ...

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list