I am trying to configure telegraf to run bash script with a flag.
For example:
[[inputs.exec]] ## Commands array
commands = [
"/tmp/test.sh",
]
That works fine, but when I modify it to:
[[inputs.exec]]
## Commands array
commands = [
"/tmp/test.sh -r",
]
It looks like telegraf is ignoring the '-r' flag.
What is wrong?