[mrtg] "0" are not in the log file

Stuckenberger, Patrick P.Stuckenberger at SYSTEMICA.COM
Mon Dec 3 10:13:22 MET 2001


my data source for getting mem info is a simple bash script, which prints 4
out (value1, value2, 0,0)

when I take a look at my mem log files from mrtg, I get something like that:

1007370697 37937152 95830016
1007370697 37937152 95830016 37937152 95830016
1007370674 38068224 95698944 38068224 95698944
1007370600 28551168 71774208 38068224 95698944

I know that I could get the data from snmp, but I 
want to know why mrtg ignores my "0" output?

output from script:
# ./mem


script itself:
# mem pro mrtg
/usr/bin/free -bt | grep buffers\/cache | awk '{print $3"\n"$4"\n"0"\n"0}'
# do the same stuff with echo (I mean the 0) doesn't work too..
exit 0

my cfg file:
Target[localhost.mem]: `mypathtoscripts/mem`
MaxBytes[localhost.mem]: 665536000
Title[localhost.mem]: Memory Utilization for localhost
PageTop[localhost.mem]: <H1>Memory Utilization for localhost </H1>
Options[localhost.mem]: gauge,growright
YLegend[localhost.mem]: Bytes
ShortLegend[localhost.mem]: B
Legend1[localhost.mem]: Free real memory
Legend2[localhost.mem]: Free swap memory
Legend3[localhost.mem]: Maximal 5 Minute Memory In Use
Legend4[localhost.mem]: Maximal 5 Minute Active Memory
LegendI[localhost.mem]:  Used:
LegendO[localhost.mem]:  Buffers + Cache:
XSize[localhost.mem]: 350

also tried with:

Options[_]: withzeroes, unknaszero

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