[[inputs.exec]] permissions issue


I’ve got a simple python script I’m trying to call from the [[inputs.exec]] but I keep getting permission denied.

I’ve tried chowning the script as root:root, or telegraf:telegraf with chmod 777 but the error persists. I’ve moved the script into the /tmp directory, and error persists. I’ve also tried adding telegraf to the root group with no success.

I am using the telegraf docker.

Any advice?

Can you show us the precise error message, and also the complete stanza for


Try using [[outputs.exec]] in your /etc/telegraf/telegraf.conf file