summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-08-23 20:20:12 +0200
committerGitHub <noreply@github.com>2023-08-23 20:20:12 +0200
commitf25e1c9fa166c22d2a329ae435ae8be4f80985ef (patch)
tree670c37b6fbb95f7b0a390cdd7a7471c503d078f8 /data/templates
parent7659c452f8d390773e48e5873552bde601e2fbca (diff)
parent661fa646915907c0f909b8e79c51fbb2f455007b (diff)
downloadvyos-1x-f25e1c9fa166c22d2a329ae435ae8be4f80985ef.tar.gz
vyos-1x-f25e1c9fa166c22d2a329ae435ae8be4f80985ef.zip
Merge pull request #2160 from sever-sever/T5448
T5448: Add configuration host-name for zabbix-agent
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/zabbix-agent/zabbix-agent.conf.j26
1 files changed, 5 insertions, 1 deletions
diff --git a/data/templates/zabbix-agent/zabbix-agent.conf.j2 b/data/templates/zabbix-agent/zabbix-agent.conf.j2
index 77f57f32f..e6dcef872 100644
--- a/data/templates/zabbix-agent/zabbix-agent.conf.j2
+++ b/data/templates/zabbix-agent/zabbix-agent.conf.j2
@@ -1,4 +1,4 @@
-# Generated by ${vyos_conf_scripts_dir}/service_zabbix_agent.py
+# Generated by ${vyos_conf_scripts_dir}/service_monitoring_zabbix-agent.py
PidFile=/run/zabbix/zabbix_agent2.pid
LogFile=/var/log/zabbix/zabbix_agent2.log
@@ -45,6 +45,10 @@ Server={{ server | bracketize_ipv6 | join(',') }}
ServerActive={{ servers | join(',') }}
{% endif %}
+{% if host_name is vyos_defined %}
+Hostname={{ host_name }}
+{% endif %}
+
{% if port is vyos_defined %}
ListenPort={{ port }}
{% endif %}