Install MRTG in Ubuntu By: Onno W. Purbo # apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 g++ # apt-get install libperl-dev Alternative (1) # cp mrtg-2.15.2.tar.gz /usr/local/src/ # cd /usr/local/src # tar zxvf mrtg-2.15.2.tar.gz # cd mrtg-2.15.2 # ./configure # make # make install # cp net-snmp-5.4.1.pre3.tar.gz /usr/local/src/ # cd /usr/local/src/ # tar zxvf net-snmp-5.4.1.pre3.tar.gz # cd net-snmp-5.4.1.pre3 # tar zxvf net-snmp-5.4.1.pre3.tar.gz # cd net-snmp-5.4.1.pre3 # ./configure --prefix=/usr 3 e-mail-address system-location /var/log/snmpd.log /var/net-snmp # make # make install Alternative (2) # apt-get install snmpd snmp tkmib libsnmp9 libsnmp-perl libsnmp9-dev libsnmp-base # snmpconff 1: snmp.conf Configure System Information System Access Control Setup Extending the Agent cek # ls /var/www/mrtg # vi /etc/snmp/snmpd.conf # sec.name source community #com2sec paranoid defaut public #com2sec readonly default public #com2sec readwrite default private com2sec readonly default public # /etc/init.d/snmpd restart # snmpwalk -v 1 -c public localhost # snmpwalk -v 2c -c public localhost # snmpwalk -v 3 -c public localhost # cfgmaker public@localhost > /etc/mrtg.cfg # vi /etc/mrtg.cfg RunAsDaemon: Yes # indexmaker /etc/mrtg.cfg >> /var/www/index.html # /usr/bin/mrtg /etc/mrtg.cfg # crontab -e */5 * * * * /mrtg /mrtg.cfg \ --logging /var/log/mrtg.log http://localhost/mrtg