net-mgmt/telegraf: make sure the defaults are explicit

exec/binary are set for IPv6 now, do the same for IPv4
although for now this appears to be the default in telegraf:

https://github.com/influxdata/telegraf/blob/master/plugins/inputs/ping/README.md#ping-input-plugin
This commit is contained in:
Franco Fichtner
2024-12-01 09:47:17 +01:00
parent 60b0bfea87
commit 76bb1b96c3
@@ -314,6 +314,7 @@
{% if helpers.exists('OPNsense.telegraf.input.ping') and OPNsense.telegraf.input.ping == '1' %}
[[inputs.ping]]
method = "exec"
binary = "ping"
{% if helpers.exists('OPNsense.telegraf.input.ping_hosts') and OPNsense.telegraf.input.ping_hosts != '' %}
urls = [{{ "'" + ("','".join(OPNsense.telegraf.input.ping_hosts.split(','))) + "'" }}]
{% endif %}