The Multi Router Traffic Grapher, or just simply MRTG, is free software for monitoring and measuring the traffic load on network links. It allows the user to see traffic load on a network over time in graphical form.
It was originally developed by Tobias Oetiker and Dave Rand to monitor router traffic, but has developed into a tool that can create graphs and statistics for almost anything.
Follow this step to install MRTG on Ubuntu :
- Install Apache2 Web Server, SNMPD, and MRTG
~$ sudo apt-get install apache2 snmpd mrtg
- Make directory on Apache Web pages reside
~$ sudo mkdir /var/www/mrtg
- Setting MRTG Configuration
~$ sudo nano /etc/mrtg.cfg
# Global configuration RunAsDaemon: yes EnableIPv6: no WorkDir: /var/www/mrtg Options[_]: bits,growright WriteExpires: Yes Title[^]: Traffic Analysis for
- Setting CRON for running every 5 minutes
~$ sudo nano /etc/cron.d/mrtg
0-55/5 * * * * root if [ ! -d /var/lock/mrtg ]; then mkdir /var/lock/mrtg; fi; if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; then env LANG=C /usr/bin/mrtg /etc/mrtg.cfg 2>&1 | tee -a /var/log/mrtg/mrtg.log ; fi
- Assign the SNMP community name
~$ sudo nano /etc/snmp/snmpd.conf
#### # First, map the community name (COMMUNITY) into a security name # (local and mynetwork, depending on where the request is coming # from): # sec.name source community #com2sec paranoid default public com2sec readonly default public #com2sec readwrite default private
- Restart the SNMP service
~$ sudo /etc/init.d/snmpd restart
- Create MRTG file configuration
~$ sudo su #cfgmaker public@localhost > /etc/mrtg.cfg
- Creating index file for the webserver using
#indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html
Special Thank's to Mr. Fajran, for the link on Plurk.
Reference :
http://en.wikipedia.org/wiki/Multi_Router_Traffic_Grapher
http://oss.oetiker.ch/mrtg
http://www.debianhelp.co.uk/mrtg.htm
Reference :
http://en.wikipedia.org/wiki/Multi_Router_Traffic_Grapher
http://oss.oetiker.ch/mrtg
http://www.debianhelp.co.uk/mrtg.htm
| Read More | ![]() |




).


































