Monitoring internet bandwidth using speedtest and zabbix
Monitoring internet bandwidth using speedtest and zabbix. The script uses zabbix_sender
to send the values to a Zabbix Server. The interval is set via cron. To get different results the script will randomly choose one of the 10 closest servers each runtime.
Inspired by
Install Speedtest-Cli
curl -Lo /usr/bin/speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x /usr/bin/speedtest-cli
Download speedtest-zabbix.sh
mkdir -p /etc/zabbix/scripts
cd /etc/zabbix/scripts
curl -LO https://raw.githubusercontent.com/sebastian13/zabbix-template-speedtest/master/scripts/speedtest-zabbix.sh
chmod +x speedtest-zabbix.sh
Create Cron
curl -Lo /etc/cron.d/speedtest-zabbix https://raw.githubusercontent.com/sebastian13/zabbix-template-speedtest/master/speedtest-zabbix.cron
service cron reload
Import the Template zbx_template_speedtest.xml
to Zabbix and assign in to a server.