diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-07-02 08:44:53 +0000 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-07-18 07:17:38 +0000 |
commit | fcc1193b4ec5af560e6f39e89baeab342e65666c (patch) | |
tree | 4d78672a46e081e22d3155ab6b1587371b7cca4f /data | |
parent | b81fa2e6ca3f90caeddb5ff6e5d8b2b021653756 (diff) | |
download | vyos-1x-mergify/bp/sagitta/pr-3748.tar.gz vyos-1x-mergify/bp/sagitta/pr-3748.zip |
T6523: Telegraf use nft scripts only if the firewall configuredmergify/bp/sagitta/pr-3748
If a firewall is not configured there is no reason to get and
execute telegraf firewall custom scripts as there are no nft
chain in the firewall nftables configuration
(cherry picked from commit ebff0c481907ac0c2c0be9981c3c3d87caf3003b)
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/telegraf/telegraf.j2 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/data/templates/telegraf/telegraf.j2 b/data/templates/telegraf/telegraf.j2 index f382dbf2e..535e3a347 100644 --- a/data/templates/telegraf/telegraf.j2 +++ b/data/templates/telegraf/telegraf.j2 @@ -130,7 +130,9 @@ metric_name_label = "{{ loki.metric_name_label }}" {% if influxdb is vyos_defined %} [[inputs.exec]] commands = [ +{% if nft_chains is vyos_defined %} "{{ custom_scripts_dir }}/show_firewall_input_filter.py", +{% endif %} "{{ custom_scripts_dir }}/show_interfaces_input_filter.py", "{{ custom_scripts_dir }}/vyos_services_input_filter.py" ] |