BandwidthD is a network monitoring program that generates statistics in HTML format every x minutes.
This program will allow you to :
Note : Because this program generates statistics in HTML format, you'll need a web server to view theses data. In this tutorial, we will use the Apache web server.
To install BandwidthD, use the command :
apt-get install bandwidthd
During the installation, the wizard will ask you for the network interface to listen :
And the network ID to be analyzed.
BandwidthD allows you to know statistics, per IP address.
It can also create graphs based on the recorded data.
For the monitoring of the network, there are 3 possibilities :
- You analyze LAN traffic entering and leaving your server
- You analyze all the traffic of your local network (including Internet traffic coming, or not)
- You analyze network traffic (LAN and Internet) entering and leaving your server
To install the Apache web server, use the command :
apt-get install apache2
Note : If you want to install a complete web server, please see our tutorial : Debian / Ubuntu - Install a complete web server with Apache, PHP, MySQL and phpMyAdmin
To configure BandwidthD, edit the "/etc/bandwidthd/bandwidthd.conf" file.
In this file, you will find especially these values :
After editing the configuration, be sure to restart BandwidthD :
service bandwidthd restart
In order to access this web interface through our apache server, there are 2 possibilities :
In our case, we'll use a symbolic link.
cd /var/www/ ln -s bandwidthd /var/lib/bandwidthd/htdocs
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2020 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.