Derek-K / telegraf-speedtest

Using official SpeedTest.net cli for telegraf
GNU General Public License v3.0
32 stars 10 forks source link

Accept the license as the telegraf user #7

Closed jbuck2005 closed 3 years ago

jbuck2005 commented 3 years ago

You must be sure to accept the Speedtest license as the telegraf user. There is a catch however; you may need to change the permissions of /etc/telegraf for a moment. When you run the subsequent speedtest command as the telegraf user, the following directory structure will be created:

/etc/telegraf ->.config ->->oolka ->->->speedtest-cli.json

Do so via:

sudo chmod 777 /etc/telegraf
sudo -u telegraf /usr/bin/speedtest
sudo chmod 755 /etc/telegraf
jbuck2005 commented 3 years ago

Closing to retain documentation for others to see.

Derek-K commented 3 years ago

See #1

jbuck2005 commented 3 years ago

So, because this is a known consideration .. and one should never have to read an issues queue to get something working, might I suggest you put this in the documentation (ie. README.MD) ?

Perhaps even make a script for people to use to do precisely what I've written above?

NelsonMinar commented 3 years ago

FWIW this error tripped me up. The speedtest client does print a useful error message to clue you in, but it'd be nice to avoid it.


[error] Path used: /etc/telegraf/.config/ookla/speedtest-cli.json```