summaryrefslogtreecommitdiff
path: root/data/templates/zabbix-agent/zabbix-agent.conf.j2
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-08-23 09:32:43 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-08-23 09:42:04 +0000
commit661fa646915907c0f909b8e79c51fbb2f455007b (patch)
tree79ad5c9a93de8ec501f69aebfe4ed204d433ca53 /data/templates/zabbix-agent/zabbix-agent.conf.j2
parent8c7fbec24f8bfe064d8ad804951f5ae59b54748f (diff)
downloadvyos-1x-661fa646915907c0f909b8e79c51fbb2f455007b.tar.gz
vyos-1x-661fa646915907c0f909b8e79c51fbb2f455007b.zip
T5448: Add configuration host-name for zabbix-agent
Ability to configure host-name for zabbix-agent set service monitoring zabbix-agent host-name 'r-vyos'
Diffstat (limited to 'data/templates/zabbix-agent/zabbix-agent.conf.j2')
-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 %}