Hi, I deployed tick stack in docker. I configured telegraf.conf file to take some metrics from [[input.exec plugin]]. Here is my bash script
#!/bin/sh
cat /proc/uptime | perl -ne ‘/(\d*)/ ; printf “%02d:%02d:%02d:%02d\n”,int($1/86400),int(($1%86400)/3600),int(($1%3600)/60),$1%60’
It is running from terminal but not from telegraf.
please help me to solve this issue
yeah the script runs with telegraf user. But not from telegraf.conf it is giving an error
2019-05-10T13:54:08Z E! [inputs.influxdb]: Error in plugin: [url=http://10.195.182.27:8086/debug/vars]: Get http://10.195.182.27:8086/debug/vars: dial tcp 10.195.182.27:8086: connect: no route to host
2019-05-10T13:54:05Z E! [inputs.exec]: Error in plugin: metric parse error: expected tag at 1:12: “00:08:27:13”