Monitor Internet connection speed with speedtest-cli

632 views
Skip to first unread message

Thomas Wittmann

unread,
Mar 25, 2017, 12:20:15 PM3/25/17
to synagios-users
Hello again, i have a new check i want to share.
Today i want to show how to install the speedtest-cli to monitor the internet connection speed at home.

  1. chroot /volume1/@appstore/Synagios/nagios-chroot/ /bin/bash
  2. apt-get install speedtest-cli
  3. Test if installation was successful with command "speedtest --simple", it should work out of the box
  4. Determine your nearest Speedtest test server with "speedtest --list | less" and note the number (top of the list), for me its 9085
  5. Download plugin from here: https://github.com/jonwitts/nagios-speedtest/blob/master/check_speedtest-cli.sh, put it into /usr/local/nagios/plugins and make it exectutable.
  6. Edit the plugin, goto line 170. Here the directory where the cli is installed must be defined. For Synagios i suppose its always STb=/usr/bin
  7. Now the plugin should work. My Internet connection is VDSL25 with 5MBit Upload. Warnings and Criticals for up-/download are mandatory, i also want to have a graph.
    • For me it looks like this: ./check_speedtest-cli.sh -w 10 -c 5 -W 2 -C 1 -l e -s 9085 -p
  8. Finished. Now configure it in Nagrestconf. I use my router as service host, the check should run not more than every six hours.
    1. Command:
    2. Service bound to host "Router":
    3. Time intervals:
  9. In Nagios:
Auto Generated Inline Image 1
Auto Generated Inline Image 2
Auto Generated Inline Image 3
Auto Generated Inline Image 4

Mark Clarkson

unread,
Mar 27, 2017, 5:46:04 AM3/27/17
to synagios-users
On Saturday, 25 March 2017 16:20:15 UTC, Thomas Wittmann wrote:

Today i want to show how to install the speedtest-cli to monitor the internet connection speed at home.


What a great idea and great write-up! I want to try this as I have no idea how variable my service is, or if it varies at all.
Thanks for sharing this!

PS. I've added a link to this post on  http://nagrestconf.smorg.co.uk/documentation.php

Thomas Wittmann

unread,
Mar 31, 2017, 5:47:25 AM3/31/17
to synagios-users
nP.
The cli will determine the nearest entry point for your internet connection (i.e. for me its some servers of Deutsche Telekom over which the route is mapped), so maybe its not the nearest point from geographical point of view.
Just try ;-)
Reply all
Reply to author
Forward
0 new messages