Monday 7 June 2010

Install And Configurasi Mrtg di Debian 5 Lenny

Install paket mrtg dan paket pendukungnya

apt-get install mrtg snmp

Edit konfigurasi snmp community name

nano /etc/snmp/snmpd.conf

Cari bagian:

#sec.name source community
com2sec paranoid default public
#com2sec readonly default public
#com2sec readwrite default private

Ganti sehingga menjadi seperti dibawah ini:

#sec.name source community
#com2sec paranoid default public
com2sec readonly default public

com2sec readonly 192.168.3.254/24 public23

com2sec readonly 192.168.1.2/24 public23

#com2sec readwrite default private

Restart service snmp

/etc/init.d/snmpd restart

Generate file konfigurasi yang akan menampilkan traffic graph

cfgmaker public@localhost > /etc/mrtg.cfg

Lakukan sedikit perubahan pada file mrtg.cfg untuk efek layout graph. Hilangkan tanda pagar (#) atau un-comment pada baris “Options[_]: growright, bits“.

nano /etc/mrtg.cfg
Options[_]: growright, bits

generate file html yang akan menampilkan hasil capture traffic.

indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html

Buka web browser dan masukkan nomor IP router/mrtg

http://localhost/mrtg

No comments:

Post a Comment