After my posting yesterday, about my traffic graph prog I got quite a
large amount of response. Instead of answering each letter
individually. I though it would be more helpful if I put up the
source for download.
you can get it from
ftp://ftp.dmu.ac.uk/pub/netcomm/src/internet/mrtg-beta.tar.gz
http://www.dmu.ac.uk/dept/admin/dld/lin/netcomm/traffic/mrtg-beta.tar.gz
I am fairly new to the whole snmp business, so therefore my software
doesn't boost any particular thrills there. My main objective was to
make it perform well even when the machine it is running on crashes at
times. I run it from a cron tab every five minutes.
Another hilight is the log file structure. The program constantly
keeps the traffic log file up to date. It only retains the date
necessary to draw the graphs. Eg after a day, it sums the 5 minute
intervals up to 30 minutes and after a week it jumps from 30 minutes
to one day. Therefore the logfile will never grow to huge.
to start the program, use
mrtg mrtg.cfg
or rather
/usr/local/bin/mrgt /usr/local/etc/mrtg.cfg
The mrtg.cfg file holds the programs configuration
Although some things are
not yet in there, like what interface it queries.
But this is just due to my ignorance.
The configuration is easily extensible.
To make the program work you need the snmpget software and the
pnmtogif from the netpbm package.
Please let me know what you think of the program.
If I get some interest, I will invest more time into writing some docs
and making the thing fully configurable
Tobi
-- ___ ________ __ _ _____ _ __ /__ ___/ / / (_) ____ Phone: +44 116 257-7156 Fax: -7169 __ ____ / / _ \/ _ \/ / ____ Email: oetiker@dmu.ac.uk ___ ___ / / // / // / / ____ Web: http://engelberg.dmu.ac.uk ____ __ /_/\___/|___/_/ ____ SysAdmin @ DMU Leicester, UK _____