How do I check if Telegraf has permissions to run the script?
This is a unix permissions question and it depends on how you are running Telegraf. Essentially you want to ensure that the user running telegraf has execute permissions on the script you need to run.
For example, if you are launch telegraf manually (e.g. ./telegraf ....) then you would need to also be able to run the script.
So, i get the below error when i execute ./telegraf.
./telegraf
2022-11-18T07:40:02Z I! Starting Telegraf 1.18.0
2022-11-18T07:40:02Z E! [telegraf] Error running agent: No config file specified, and could not find one in $TELEGRAF_CONFIG_PATH, /home/1rdexe/.telegraf/telegraf.conf, or /etc/telegraf/telegraf.conf