-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Hi, after install and not working (Debian 11 on Proxmox CT), I noticed on Telegraf logs that you must accept the License.
Logs show this:
$ tail /var/log/telegraf/agent_speedtest.log
2021-10-11T01:37:10Z E! [inputs.exec] Error in plugin: exec: exit status 1 for command '/usr/bin/speedtest -f json-pretty': ==============================================================================
You may only use this Speedtest software and information generated
from it for personal, non-commercial use, through a command line
interface on a personal computer. Your use of this software is subject
to the End User License Agreement, Terms of Use and Privacy Policy at
these URLs:
https://www.speedtest.net/about/eula
https://www.speedtest.net/about/terms
https://www.speedtest.net/about/privacy
==============================================================================
To accept the message please run speedtest interactively or use the following:
speedtest --accept-license
So, login as Telegraf:
$ sudo -H -u telegraf -s
Then, run Telegraf as test:
$ telegraf --config=/etc/telegraf/telegraf.conf --test --input-filter=exec
Accept the License and you will se the result working properly:
$ telegraf@Speedtester:~$ telegraf --config=/etc/telegraf/telegraf.conf --test --input-filter=exec
2021-10-11T02:12:48Z I! Starting Telegraf 1.20.2
Speedtest,host=Speedtester download_bandwidth=49833045,download_bytes=204310920,download_elapsed=4112,interface_externalIp="W.X.Y.Z",packetLoss=0,ping_jitter=0.101,ping_latency=2.905,result_url="https://www.speedtest.net/result/c/lalalalalalalala",server_host="nacional.grupogtd.com",server_id=11508,server_ip="190.196.123.30",server_location="Santiago",server_name="Grupo GTD",server_port=8080,upload_bandwidth=27471092,upload_bytes=99254364,upload_elapsed=3612 1633918379000000000
Now, everything is working properly.
Regards
Sebastan