pedrolsazevedo / TICK-Speedtest-Grafana

My simple configuration of a TIC(Telegraf, InfluxDB and Chronograf), Speedtest and Grafana, to follow my network speed and quality
10 stars 7 forks source link

Error with Inputs.exec #1

Closed piboxx closed 3 years ago

piboxx commented 3 years ago

Hello Pedro,

First, thank you for your project speedtest- Grafana. Really good but I Have an issue after the installation.

I followed every step but it didn't work.

I see in the log (/var/log/telegraf/agent_speedtest.log) the following error :

[[inputs.exec]] Error in plugin: exec: exit status 1 for command '/usr/bin/speedtest -f json-pretty'

I tested this command in manual and it's ok but not information in my grafana.

I used Grafana V. 7.3.3 and debian 10 Influx DB and Telegraf in your project. I copied your file telegraf.conf in my folder /etc/telegraf

Influxdb active and running Telegraf active and running Grafana : Influx db (Data source connection ok) Your dashboard is ok but no data No firewall in debian 10 (disable). This is a virtual machine. No firewall (disable) in the host physical (Hyper V).

In the log agent_speedtest.log : I have a success connection Output plugin

Thank you for your time and help

++ Piboxx

piboxx commented 3 years ago

Hello Pedro,

Problem resolved.

Thank you for your help.

Finally the following command is ok :

copy the .config folder in your home to /etc/telegraf/

cp ~/.config /etc/telegraf

set permissions for telegraf

chown -R telegraf /etc/telegraf/.config

Thank you Pedro 👍