This solution allows you to monitor the speed of the Internet connection over Gigabit Ethernet, Wifi 2.4 and 5Ghz and display the service quality over time using graphs. To measure the connection speed, I used the Speedtest service and the SpeedTest ++ command line utility. I do not use the popular speedtest-сli utility because at higher speeds it shows a slow upload speed.

The instructions below explain how to install the SpeedTest++ utility.

$ sudo apt-get install build-essential libcurl4-openssl-dev libxml2-dev libssl-dev cmake
$ git clone
$ cd SpeedTest
$ cmake -DCMAKE_BUILD_TYPE=Release .
$ sudo make install

To measure speed, enter the command:



Let’s create two files, give execution rights and write the script to a file:

$touch ./speed.txt
$touch ./
$chmod +x ./
$nano ./

Edit the script for your tasks. Use my script from the picture as an example. Type it manually to understand :).


Let’s add our script to the crontab job scheduler so that it runs once every 20 minutes:

$crontab – e

Let’s configure our Zabbix server to receive data from our script and display it on the chart.


Graphs in Grafana look better. These graphs are great for presentations:) Let’s build a graph in Grafana using Zabbix data.

Of course, this is not a complete instruction, but I am ready to answer your questions.


Leave a Reply