Relevant telegraf.conf
[[inputs.exec]]
commands = [ "powershell.exe -OutputFormat Text -NonInteractive -NoProfile -NoLogo -File check_update_status.ps1" ]
data_format = "influx"
timeout = "59s"
interval = "60s"
Logs from Telegraf
2026-04-20T07:21:33Z W! [inputs.exec] Collection took longer than expected; not complete after interval of 1m0s
2026-04-20T07:21:34Z E! [agent] Error killing process: TerminateProcess: Access is denied.
System info
Windows Serveur 2016
Docker
No response
Steps to reproduce
- Have a powershell script that response in more than timeout
- Run telegraf as service
Expected behavior
Why ower windows, the service is not able to kill child process ?
Actual behavior
Be able to kill child process
Additional info
No response
Relevant telegraf.conf
Logs from Telegraf
System info
Windows Serveur 2016
Docker
No response
Steps to reproduce
Expected behavior
Why ower windows, the service is not able to kill child process ?
Actual behavior
Be able to kill child process
Additional info
No response