BandwidthD tracks usage of TCP/IP network subnets and builds HTML files with graphs to display utilization
Step1. Install the packages
yum group install Development Tools -y
yum install httpd libpcap libpcap-devel libpng libpng-devel gd gd-devel php-gd -y
Step2. Download the bandwidthd package
wget http://jaist.dl.sourceforge.net/project/bandwidthd/bandwidthd/bandwidthd%202.0.1/bandwidthd-2.0.1.tgz
Step3. Untar the file
tar -xvf bandwidthd-2.0.1.tgz
Step4. Execute the setup
cd bandwidthd-2.0.1/
./configure
make
make install
Step5. Configure the tool
vi /usr/local/bandwidthd/etc/bandwidthd.conf subnet <the subnet you wish track> subnet <if you have another subnet..> dev “eth0” skip intervals 0 graph_cutoff 1024 filter “ip” graph true meta_refresh 150 output_cdf true recover_cdf true
Step6. Create a soft link
cd /var/www/html/
ln -s /usr/local/bandwidthd/htdocs bandwidthd
Step7. Run tool bandwidth
cd /usr/local/bandwidthd
./bandwidthd
Step8. Start/Enable the service
systemctl start httpd
systemctl enable httpd
systemctl status httpd
Step9. Add a line in rc.local
vi /etc/rc.local
/usr/local/bandwidthd/bandwidthd
Step10. Access via browser
http://ip_address/bandwidthd