Today, I has configured Multi Router Traffic Grapher (MRTG). It can give us information about network traffic or server process condition. There are many open software of traffic grapher. One of all is Cacti: The Complete RRDTool-based Graphing Solution. I think it is better than MRTG. Of corse, at next day i want to oprek this software.
MRTG will monitor SNMP network devices and draw pretty pictures showing how much traffic has passed through each interface.
Before installing mrtg, there are some software must have installed on the server. There are:
1. net-snmp-5.1.1.tar.gz
2. zlib-1.2.1.tar.gz
3. libpng-1.2.6.tar.gz
4. gd-2.0.32.tar.gz
5. httpd-2.0.50.tar.gz
I only need to install snmp and mrtg, cause i have installed the other program.
A.INSTALL
1. Install snmp :
#tar -zxvf net-snmp-5.1.1.tar.gz
#mv net-snmp-5.1.1 snmp
#./configure
#make
#umask 022
#make install
#vi /usr/local/share/snmp/snmpd.conf
###############################################
com2sec public default public
group public v1 public
group public v2c public
group public usm public
view all included .1
access public “” any noauth exact all none none
###############################################
#/usr/local/sbin/snmpd
#netstat -pln | grep snmpd
#snmpwalk -v 1 -c public localhost system
2. Install mrtg :
#tar -zxvf mrtg-2.10.14.tar.gz
#mv mrtg-2.10.14 mrtg
#./configure –prefix=/usr/local/mrtg –with-gd=../gd –with-z=../zlib –with-png=../libpng
#make
#make install
B.CONFIGURATION
#/usr/local/mrtg/bin/cfgmaker –global “WorkDir: /var/www/html/mrtg” –global “Options[_]: growright,bits” public@202.51.233.168 –output /var/www/html/mrtg/cfg/202.51.233.168.cfg
#/usr/local/mrtg/bin/indexmaker –output=/var/www/html/mrtg/index.html /var/www/html/mrtg/cfg/202.51.233.168.cfg
#vim /var/www/html/mrtg/cfg/202.51.233.168.cfg
################################
RunAsDaemon:Yes
Interval:5
Refresh:300
###############################
#LANG=C
#/usr/local/mrtg/bin/mrtg /var/www/html/mrtg/cfg/202.51.233.168.cfg
#vim /etc/rc.local
################################
/usr/local/sbin/snmpd
lANG=C
/usr/local/mrtg/bin/mrtg /var/www/html/mrtg/cfg/202.51.233.168.cfg
###############################
You can see my mrtg server at mrtg neta. It can viewed how large bandwitdh that we have using are.
It’s nice day.
Happy trying……..
>>aris<<
First post at Sunday, March 26, 2006, 04:50 PM

nice tutorial.
Could you describe with details what OS you used for buddy ? it seems your server running on linux isn’t ?