sudo apt-get install iperf3
sudo apt-get install apache2 libapache2-mod-php5
sudo apt-get install rrdtool php5-rrd
iperf3 binaries are also available here: https://iperf.fr/iperf-download.php
A remote machine is required which runs an iperf3 server instance.
iperf3 -s -D
Alternatively, a public iperf3 server can be used. See https://iperf.fr/iperf-servers.php.
https://github.com/christianeisendle/bandwidth-measure-rrd.git
./rrd-init.sh
The iperf3 server must be specified using BW_IPERF_SERVER
variable either by setting it as environment variable or by specifying it in bandwidth.cfg:
BW_IPERF_SERVER=my.iperfserver.com
Note: bandwidth.cfg must exist; it can be empty, though.
Example:
*/10 * * * * capture_and_update_db_iperf3.sh