Install bandwidth monitor linux

It is important to know traffic usage of your client if you’re a Linux network administrator.

You can monitor your client in text mode, graphic mode or html exported like mrtg, cacti but bandwidthd is very good bandwidth monitoring tool…………..



You don’t need any database or snmp connection to monitor all of your client on bandwidthd,
all you need just libcap, libpng, libgd and apache installed on your Linux system. And other
good news is bandwidthd monitor all of your connected client per IP and per connection protocol.

 Link to the download area on SourceForge: Download BandwidthD

[root@planetmy]# tar xvfz bandwidthd-2.0.1.tgz

[root@planetmy]# cd bandwidthd

Configure and install the Bandwidthd source:

[root@planetmy]# ./configure && make install

Please make sure you have:
 libpcap from http://www.tcpdump.org/
 libpng from http://www.libpng.org/
 libgd from http://www.boutell.com/gd/

Or

# yum install libbap Or # apt-get install libcap

# yum install libpng Or # apt-get install libpng

# yum install apache Or # apt-get install apache2

Edit /usr/local/bandwidthd/etc/bandwidthd.conf

to suit your network environment. …..

Save your config and start bandwidthd using /usr/local/bandwidthd/bandwidthd.

Point your Apache Virtual Host to
 /usr/local/bandwidthd/htdocs for browse
 the bandwidthd graph

Alias /bandwidthd “/usr/local/bandwidthd/htdocs”
 <Directory “/usr/local/bandwidthd/htdocs”>
 Order Allow,Deny
 Allow from All
 </Directory>



Save your work and restart apache. Next open your browser and point to http://yourserverip/bandwidth.

Thanks,
Vishal Vyas

2 comments:

  1. Hi Vishal,

    How to monitor live network traffic....Is there any tool for this...

    Regards,
    Prashant

    ReplyDelete
    Replies
    1. Install NTOP :-
      http://www.vishalvyas.com/2012/03/install-ntop-on-redhar-of-centos.html

      Delete