Closed wojciehm closed 4 years ago
It always bugged me that Zabbix agent treats stderr the same as stderr...
Is your cronjob setup correctly?
Hi. I didn't configure any schedule but based on the errors it runs every 5 minutes. The same happens when I try to execute it on demand.
It might be that speedtest-cli removed some flags. When I try to run ./zbx-speedtest.sh --run
I receive following error speedtest: error: unrecognized arguments: --accept-license --accept-gdpr -f json
.
I tried to comment out lines 165 to 167 from https://github.com/pschmitt/zabbix-template-speedtest/blob/598a8274cbbed505a080e36c51968cc9ab733040/zbx-speedtest-debian.sh#L165 and script executes but /tmp/speedtest.json is empty.
As well when I try to execute zbx-speedtest.sh script as regular user nothing in /tmp is created.
Oh so you are not using the right speedtest-cli binary.
This plugin relies on Ookla'a version: https://www.speedtest.net/apps/cli
You are right. I installed speedtest from Ubuntu repository. There isn't repo for Ubuntu 20 so I had to install it manually. Now all works perfectly fine.
Thanks for your help.
OS
Distributor ID: Ubuntu Description: Ubuntu 20.04.1 LTS Release: 20.04 Codename: focal
Prerequisites
Speedtest
bc
jq
Zabbix
etc/zabbix/zabbix_agentd.d# zabbix_server --version zabbix_server (Zabbix) 5.0.4
SSH script
SSH script is owned by zabbix:zabbix
I followed the Ubuntu instructions template is imported. When I manually try to execute test in zabbix_server.log I have following entries.
I guess it refers to this line https://github.com/pschmitt/zabbix-template-speedtest/blame/598a8274cbbed505a080e36c51968cc9ab733040/zbx-speedtest-debian.sh#L140
What could be an issue here?
Best regards Wojciech