Hi, I tried your script but it didn't worked here.
I have MRTG monitoring memory from my linux box with this simple script: #!/bin/sh free -b | grep Mem | while read STR TOTAL USED FREE SHARED BUFFERS CACHED do echo $FREE; echo $USED done UPTIME=`uptime | cut -d "," -f1,2 | cut -c14-30` HOSTNAME=`hostname` echo $UPTIME echo $HOSTNAME exit 0 And for swap, you have only to change the "grep" part to "grep Swap" Greets, Eduardo > -----Mensagem original----- > De: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Em nome de Marco Ledebur > Enviada em: sexta-feira, 29 de outubro de 2004 05:16 > Para: [EMAIL PROTECTED] > Assunto: [mrtg] free &used memory are 0? > > > Hello folks! > > I use MRTG-2.10.15 to monitoring the CPU trouble, I/O trouble > and free & > used memory of my linux machine. > For all three measurements I use perl scripts. > CPU & I/O trouble monitoring works fine. > > With a perl script I get the value of the memory from the > top-function. I get some value which are right, but the rest > of the time free and used memory got the value 0. When I > execute the perl script or start mrtg in the terminal it always > shows the right values. But MRTG-graphs shows 0. -- Unsubscribe mailto:[EMAIL PROTECTED] 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
