SNMP and mrtg

Gerald Combs gerald at ethereal.com
Tue Apr 24 20:40:16 CDT 2001


On Tue, 24 Apr 2001, mike neuliep wrote:

> Edit your new router.cfg file and add the following two lines to the beginning
> of the file:
> 
> WorkDir: /var/www/mrtg
> WithPeak[_]: ymw

I usually add

Options[_]: growright, bits

"Growright" draws the graph with the newest data on the right (everyone
around here seems to think it's more "natural" that way), and "bits" tells
it to display everyting in bits/sec instead of bytes/sec.

> 
> 
> For the indexmaker run this command:
> indexmaker --output=/var/www/mrtg/router.html --sort=descr /var/www/mrtg/router.cfg
> 
> Ignore the stupid errors indexmaker will generate here.
> 
> Add to cron:
> */5 * * * * /usr/local/bin/mrtg /var/www/mrtg/router.cfg
> 
> Run mrtg three times manually, you'll see a lot of errors, but just ignore them:
> Do this three times:
> 
> /usr/local/bin/mrtg /var/www/mrtg/router.cfg
> 
> 
> Point browser at webserver:
> http://webserver-host-name/mrtg/router.html
> 
> Let me know what you see at this point.  It should be an empty graph, but let it
> run about 30 minutes or so and you should start seeing something!
> 
> 	Mike
> 
> 
> 
> 




More information about the Kclug mailing list