[rrd-users] Re: maybe a bit off topic (4GB RAM snmp)

Brett Marler brett at asroma.homeip.net
Fri Jan 31 03:52:17 MET 2003


Florian,

> her is the output:
> term$ snmpget -v1 -c public 10.0.0.12 .1.3.6.1.4.1.2021.4.6.0
> enterprises.ucdavis.memory.memAvailReal.0 = -1
Wow, that is pretty strange. No need to worry, there are other ways that you 
can graph free memory on your Redhat box.

I assume that the output of "free" shows your 4GB RAM? If so, here's a small 
script you can use to collect the output of free and put it into a format that 
MRTG or RRDTool can use.

--
pc-linux% cat check-mem
#!/bin/sh

freemem=`/usr/bin/free | /bin/grep -i mem | awk '{print $4}'`

echo "$freemem";
--

Then in your mrtg.cfg just set your Target to be something like:

--
Target[linux-freemem]: `/etc/mrtg/scripts/check-mem`
--

Hope this is of some help to you.


Regards,
Brett Marler.



-- Binary/unsupported file stripped by Ecartis --
-- Err : No filename to use for decode, file stripped.
-- Type: application/pgp-signature


--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list