diff --git a/salt/telegraf/etc/telegraf.conf b/salt/telegraf/etc/telegraf.conf index 93d0e71b3..ae1b83084 100644 --- a/salt/telegraf/etc/telegraf.conf +++ b/salt/telegraf/etc/telegraf.conf @@ -335,7 +335,7 @@ {%- do TELEGRAFMERGED.scripts[GLOBALS.role.split('-')[1]].remove('sostatus.sh') %} [[inputs.exec]] commands = [ - "/scripts/sostatus.sh" + ["/scripts/sostatus.sh"] ] data_format = "influx" timeout = "15s" @@ -346,7 +346,7 @@ [[inputs.exec]] commands = [ {%- for script in TELEGRAFMERGED.scripts[GLOBALS.role.split('-')[1]] %} - "/scripts/{{script}}"{% if not loop.last %},{% endif %} + ["/scripts/{{script}}"]{% if not loop.last %},{% endif %} {%- endfor %} ] data_format = "influx" @@ -375,7 +375,7 @@ {%- if GLOBALS.is_manager or GLOBALS.role == 'so-heavynode' %} [[ inputs.exec ]] commands = [ - "/scripts/esindexsize.sh" + ["/scripts/esindexsize.sh"] ] data_format = "influx" interval = "1h"