Skip to content
Snippets Groups Projects
Commit 3fdcf062 authored by Kerri Wait's avatar Kerri Wait
Browse files

Fix syntax error in telegraf config for softnet_stats

Need to escape quotes in the awk command
parent 0c2fa647
No related branches found
No related tags found
2 merge requests!505Fix syntax error in telegraf config for softnet_stats,!338Update telegraf config to parse /proc/net/softnet_stat details
This commit is part of merge request !338. Comments created here will be created in the context of that merge request.
......@@ -136,7 +136,7 @@
[[inputs.exec]]
commands = [
"awk -v hostname="$(hostname)" -f /opt/telegraf/bin/telegraf_softnet_stats.awk /proc/net/softnet_stat"
"awk -v hostname=\"$(hostname)\" -f /opt/telegraf/bin/telegraf_softnet_stats.awk /proc/net/softnet_stat"
]
data_format = "influx"
timeout="4s"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment