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 :
Bash
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 :
Bash
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.
Bash
vim /etc/bandwidthd/bandwidthd.conf
In this file, you will find especially these values :
After editing the configuration, be sure to restart BandwidthD :
Bash
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.
Bash
cd /var/www/ ln -s bandwidthd /var/lib/bandwidthd/htdocs
Linux 10/11/2016
Linux 2/4/2014
Linux 12/20/2014
Linux 6/17/2015
Pinned content
Contact
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © 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.
You must be logged in to post a comment