Hi, I'm desperately trying to set up a simple form of ip accounting on my gateway. Here is the configuration file I use for MRTG:
################################################### workdir: /usr/local/httpd/htdocs/mrtg Language:german options[_]: growright, nopercent Background[_]:#eeeeee ### Interface 2 >> Descr: 'eth0' | Name: '' | Ip: '172.30.200.98' | Eth: '00-0b-6a-60-81-ec' ### Target[192.168.0.103_2]: ifOutOctets.3&ifInOctets.3:[EMAIL PROTECTED]: SetEnv[192.168.0.103_2]: MRTG_INT_IP="172.30.200.98" MRTG_INT_DESCR="eth0" MaxBytes[192.168.0.103_2]: 1250000 Title[192.168.0.103_2]: eth0 -- Proxy PageTop[192.168.0.103_2]: <H1>eth0 -- Proxy</H1> YLegend[192.168.0.103_2]: traffic eth0 ShortLegend[192.168.0.103_2]: Byte LegendI[192.168.0.103_2]: bits IN LegendO[192.168.0.103_2]: bits OUT Legend1[192.168.0.103_2]: IN eth0 Legend2[192.168.0.103_2]: OUT eth0 <TABLE> <TR><TD>System:</TD> <TD>Proxy Baden-Airpark</TD></TR> <TR><TD>Maintainer:</TD> <TD>Sysadmin ([EMAIL PROTECTED])</TD></TR> <TR><TD>Description:</TD><TD>eth0 </TD></TR> <TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR> <TR><TD>ifName:</TD> <TD></TD></TR> <TR><TD>Max Speed:</TD> <TD>1250.0 kBytes/s</TD></TR> <TR><TD>Ip:</TD> <TD>172.30.200.98</TD></TR> </TABLE> ################################################### Well, I get a logfile /usr/local/httpd/htdocs/mrtg/192.168.0.103_2.log (I know, it's not the real IP, I did smoe cut&paste) and I guess that the line 1114706701 2416198468 3950555553 is the time and the number of Out and In Octets. Hm, those numbers were bigger yesterday evening (?). Can someone of you recommend a little script that does nothing morgen than send me and email every morning, containing the amount of traffic (in and out)? I already tried RTG and bbstatus, but RTG wants a special version of MySQL and bbstatus requires PostgreSQL - I just want two numbers every morning. Thanks a lot for every help/hint. Stefan -- ***************************************** in-put GbR - Das Linux-Systemhaus Stefan-Michael Guenther Moltkestrasse 49 D-76133 Karlsruhe Tel./Fax : +49 (0)721 / 83044 - 98/93 http://www.in-put.de ***************************************** -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
