User Guide: MRTG - secviz/davix GitHub Wiki

Site

oss.oetiker.ch/mrtg

Summary

Visualization of traffic load on network devices using SNMP queries.

Setup Steps

MRTG is run as a cron job so you will have to modify a file to get it working.

  • Access /etc/cron/mrtg
  • Remove the # at the beginning of the line

Command Line Quick Start

Example:	cfgmaker --global 'WorkDir: /tmp' \
			--global 'Options[_]: bits,growright' \
			--output /tmp/mrtg.cfg [email protected]

		mrtg /tmp/mrtg.cfg
		mrtg /tmp/mrtg.cfg
		mrtg /tmp/mrtg.cfg

		The result HTML page can be found in the WorkDir.

How to Get it Working

  • Open a console.
  • First you have to create a configuration file for you network device you want to monitor. In our example we have chosen 192.168.16.5.
  • To initialize the database we have to run the following mrtg command a couple of times. The error messages during the first two runs are normal.
  • Create a cron job which calls mrtg every now and then using the command:
    mrtg /tmp/mrtg.cfg
  • After a couple of runs open file:///tmp/192.168.16.5_1.html in Firefox to view the graph.

Comments

⚠️ **GitHub.com Fallback** ⚠️