Wednesday, December 3, 2008

Monitor Bandwidth dengan BandwidthD di Ubuntu

Sebenarnya banyak sekali tool yang bisa dipakai untuk monitoring jaringan, sebutlah MRTG dan SARG (monitoring squid).

Kalo MRTG (Multi Router Traffic Grapher) adalah suatu program aplikasi penampil data dalam bentuk angka/grafik HTML, yang memanfaatkan port SNMP. Data yang dimaksud bisa berupa trafik bandwidth yang keluar/masuk suatu device, statistik suatu program aplikasi dan lain-lain.

Sedangkan SARG (Squid Analysis Report Generator) merupakan bagian dari webmin tool yang melaporkan hasil analisa prilaku dari squid, yang diambil dari file log-nya (/var/log/squid/access.log : klo di ubuntu).

Sebagai awal saya pilih bandwidthD karena instalasinya gampang, apalagi di Ubuntu, heeee ...

BandwidthD menampilkan akumulasi pemakaian bandwidth suatu jaringan TCP/IP selama periode tertentu dengan bentuk tabel/angka/grafik dalam format HTML.

Grafik yang ditampilkan berdasarkan alamat IP masing-masing yang berada dalam jaringan yang dimonitor.

Dari tabel IP yang dimonitor, dapat dilihat hostname dari IP tersebut (jika terdapat Name Server yang dapat meresolve IP tersebut), total bandwidth yang digunakan (sent/receive), pemakaian tcp, udp, icmp, http, p2p, vpn, semuanya dapat dilihat.


BandwidthD memerlukan librari libpcap, libgl, dan libpng, jadi pastikan librari tersebut telah terinstall di komputer Anda.


Output dari BandwidthD dapat dibuat statik (dalam periode tertentu, setiap 200 detik, memperbaharui halaman HTML dan gambar PNG yang telah dibuat), dan dinamis (variabel data dimasukkan dalam database, kemudian ditampilkan berdasarkan kueri yang kita inginkan melalui program PHP). Tampilan yang dihasilkan, secara garis besar adalah sama, hanya saja jika dengan format dinamis, kita dapat menampilkan laporan berdasarkan filter-filter tertentu, mencari alamat IP tertentu, dan lain-lain.


Instalasi

Karena BandwidthD sudah dimasukkan dalam paket di Repositori Ubuntu, maka pastikan setting repo anda sudah benar.

$ sudo apt-get install bandwidthd

Tinggal tunggu aj, sampai proses instalasi selesai. Trus kita edit file konfigurasi nya di /etc/bandwidthd/bandwidth.conf

$ sudo nano /etc/bandwidthd/bandwidthd.conf

....
subnet 10.10.10.0/24 ==>
subnet dari network yg akan di monitor
....
dev "eth0" ==>
interface yang dipakai oleh network
....
htdocs_dir "/var/lib/bandwidthd/htdocs" ==>
direktori output html bandwidthD

Klo tdk ada yg error, ya pasti jalan, jalankan saja daemon nya :

$ sudo /etc/init.d/bandwidthd start
Starting BandwidthD: bandwidthd.

OK deh tinggal setting webnya, karena direktori output html nya ada di "/var/lib/bandwidthd/htdocs", kita perlu buat sebuah direktori di root direktori apache2 yang akan kita link-kan ke diroktori "/var/lib/bandwidthd/htdocs".

$ sudo mkdir /var/www/bandwidthd/
$ sudo lndir /var/lib/bandwidthd/htdocs/ /var/www/bandwidthd/

Trus kita buka di browser : http://localhost/bandwidthd/ hasilnya :


Selamat mencoba .....

10 comments:

tipanca said...

....mas, ikut publish artikelnya ya ..http://tipanca.wordpress.com/2009/04/12/monitor-bandwidth-dengan-bandwidthd-di-ubuntu/...

Lutfi said...

@tipanca
monggo, semoga bermanfaat....

Travel Surabaya Malang said...

semua artikel yang ditulis menambah ilmu baru untuk saya, sekali lagi terimakasih

Smadav 2021 said...

Canon iP2770 Driver Download
Canon iP2770 Driver Download
Smadav 2017 Free Download
Brother mfc-790cw Driver Download
Hp Deskjet Ink Advantage 1515 Driver Download
2017 Honda Accord Release Date
Cara Menghilangkan Bekas Jerawat
Hp Deskjet 1050a Driver Download
2017 Toyota Camry Release Date
Cara Menghilangkan Komedo
Canon iP2770 Driver Download

Friv said...

I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Thanks!

Juliana Kho said...

daftar game slot joker

Juliana Kho said...

loginjoker
aplikasi sabung ayam s128
login idn play
idnplay poker

for ict 99 said...

A IEEE project is an interrelated arrangement of exercises, having a positive beginning and end point and bringing about an interesting result in Engineering Colleges for a particular asset assignment working under a triple limitation - time, cost and execution. Final Year Project Domains for CSE In Engineering Colleges, final year IEEE Project Management requires the utilization of abilities and information to arrange, plan, plan, direct, control, screen, and assess a final year project for cse. The utilization of Project Management to accomplish authoritative objectives has expanded quickly and many engineering colleges have reacted with final year IEEE projects Project Centers in Chennai for CSE to help students in learning these remarkable abilities.



Spring Framework has already made serious inroads as an integrated technology stack for building user-facing applications. Spring Framework Corporate TRaining the authors explore the idea of using Java in Big Data platforms.
Specifically, Spring Framework provides various tasks are geared around preparing data for further analysis and visualization. Spring Training in Chennai

Iklan Baris said...

Pengetahuannya sangat berguna
iklan baris gratis

mariajemmison said...

We TreatAssignmentHelp is a team of expert professional writers who provide Assignment Help with Assignment Help England, Assignment Help Ireland, Economics Assignment Help, etc in the UK. Our assignment helpers aim to provide 100% plagiarism-free assignment help. Our approach to the core values helped us from being the most promising online assignment help to the student’s favorite assignment help in the UK. Contact us today & get a Reasonable pricing quotation. Contact us by email at help@treatassignmenthelp.co.uk and our experts will contact us as soon as possible.

For more services:-

Assignment Help UK
Online Assignment Help UK
Assignment Help UK
UK Assignment Help
Assignment Writing Help UK

Related Post :