This Check_MK plugin allows you to retrieve various information about your Internet Speed. This includes the following:
- Download/Mbps
- Upload/Mbps
- Average latency
- Your public IP
- The remote Server IP
If required, this tool can also be extended with some additional information. For the speed tests, the service of ookla (https://www.speedtest.net/) is used.
The plug-in is divided into a client and a server plug-in. You can install the client plugin on the Check_MK server or on any other device with a Check_MK agent.
- Install the Ookla Speedtest CLI - https://www.speedtest.net/de/apps/cli
- Install the JSON Processor - For Debian:
apt install jq -y
- Install apcalc - For Debian:
apt install apcalc -y
- Save the
speedtest_agent_plugin.sh
on the client under the folder:/usr/lib/check_mk_agent/plugins/
- Make the script executable -
chmod +x /usr/lib/check_mk_agent/plugins/speedtest_server_plugin.py
- Check on the client with the command:
check_mk_agent
if the script can be executed successfully. (output might be encrypted) - Check that cache json file has been created: /var/lib/check_mk_agent/cache/speedtest_data.json
- Switch to your CheckMK installation on your CheckMK server.
su - <mycheckmk>
- Navigate to the Plugin folder Folder
cd local/lib/check_mk/base/plugins/agent_based
- Make the script executable -
chmod +x speedtest_server_plugin.py
Rediscover Services on the host. A new service with the name: Ookla Speed check
should appear. Add it as a monitored Service.
By default, the speed test is performed every 30 minutes. If you want to change this, you can do so in the client/agent plugin (speedtest_agent_plugin.sh
). To do this, simply change the variable content of speedtest_every_min
in the script.