8 Langkah Install MRTG Pada Debian-Linux
1. Install Paket
# apt-get install apache2 snmp snmpd mrtg
2. Edit /etc/snmp/smpd.conf
# vim /etc/snmp/smpd.conf
sysDescr Proxy Server
sysContact aagink@gmail.com
sysName aagink proxy
sysLocation Rack008
com2sec public default public
group public v1 public
group public v2c public
view all included .1
access public "" any noauth exact all none none
3. Restart service snmp
# /etc/init.d/snmpd restart
4. Buat config mrtg
# cfgmaker public@localhost > /etc/mrtg.cfg
5. Edit /etc/mrtg.cfg
# vim /etc/mrtg.cfg
hilangkan tanda # pada Options[_]: bits,growright
RunAsDaemon: yes
EnableIPv6: no
WorkDir: /var/www/mrtg
Options[_]: bits,growright
WriteExpires: Yes
Title[^]: Traffic Analysis for
6. Buat mrtg index.html
# indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html
7. Cek MRTG
buka browser http://10.10.10.1/mrtg/
8. Agar graph mrtg update per 5menit
# vim /etc/cron.d/mrtg
0/5 * * * * root if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; then env LANG=C /usr/bin/mrtg /etc/mrtg.cfg >> /var/log/mrtg/mrtg.log 2>&1; fi
Read more...