diff --git a/net-mgmt/telegraf/src/opnsense/service/templates/OPNsense/Telegraf/telegraf.conf b/net-mgmt/telegraf/src/opnsense/service/templates/OPNsense/Telegraf/telegraf.conf index fd5012ae5..f0a9c9311 100644 --- a/net-mgmt/telegraf/src/opnsense/service/templates/OPNsense/Telegraf/telegraf.conf +++ b/net-mgmt/telegraf/src/opnsense/service/templates/OPNsense/Telegraf/telegraf.conf @@ -318,19 +318,19 @@ urls = [{{ "'" + ("','".join(OPNsense.telegraf.input.ping_hosts.split(','))) + "'" }}] {% endif %} {% if helpers.exists('OPNsense.telegraf.input.ping_count') and OPNsense.telegraf.input.ping_count != '' %} - count = {{ OPNsense.telegraf.input.ping_count }} + arguments = ["-4", "-c", "{{ OPNsense.telegraf.input.ping_count }}"] {% endif %} {% endif %} {% if helpers.exists('OPNsense.telegraf.input.ping6') and OPNsense.telegraf.input.ping6 == '1' %} [[inputs.ping]] method = "exec" - binary = "ping6" + binary = "ping" {% if helpers.exists('OPNsense.telegraf.input.ping6_hosts') and OPNsense.telegraf.input.ping6_hosts != '' %} urls = [{{ "'" + ("','".join(OPNsense.telegraf.input.ping6_hosts.split(','))) + "'" }}] {% endif %} {% if helpers.exists('OPNsense.telegraf.input.ping6_count') and OPNsense.telegraf.input.ping6_count != '' %} - count = {{ OPNsense.telegraf.input.ping6_count }} + arguments = ["-6", "-c", "{{ OPNsense.telegraf.input.ping6_count }}"] {% endif %} {% endif %}