Revert "Fix for mixed ping plugin config (#4316)" #4349

This reverts commit ee7868fa93.
This commit is contained in:
Franco Fichtner
2024-11-15 08:13:47 +01:00
parent 3a14c24a36
commit 4a4eaf40da
@@ -313,8 +313,7 @@
{% if helpers.exists('OPNsense.telegraf.input.ping') and OPNsense.telegraf.input.ping == '1' %}
[[inputs.ping]]
method = "native"
ipv4 = true
method = "exec"
{% if helpers.exists('OPNsense.telegraf.input.ping_hosts') and OPNsense.telegraf.input.ping_hosts != '' %}
urls = [{{ "'" + ("','".join(OPNsense.telegraf.input.ping_hosts.split(','))) + "'" }}]
{% endif %}
@@ -325,8 +324,8 @@
{% if helpers.exists('OPNsense.telegraf.input.ping6') and OPNsense.telegraf.input.ping6 == '1' %}
[[inputs.ping]]
method = "native"
ipv6 = true
method = "exec"
binary = "ping6"
{% if helpers.exists('OPNsense.telegraf.input.ping6_hosts') and OPNsense.telegraf.input.ping6_hosts != '' %}
urls = [{{ "'" + ("','".join(OPNsense.telegraf.input.ping6_hosts.split(','))) + "'" }}]
{% endif %}