diff options
author | Christian Breunig <christian@breunig.cc> | 2023-08-23 20:20:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-23 20:20:12 +0200 |
commit | f25e1c9fa166c22d2a329ae435ae8be4f80985ef (patch) | |
tree | 670c37b6fbb95f7b0a390cdd7a7471c503d078f8 /data | |
parent | 7659c452f8d390773e48e5873552bde601e2fbca (diff) | |
parent | 661fa646915907c0f909b8e79c51fbb2f455007b (diff) | |
download | vyos-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')
-rw-r--r-- | data/templates/zabbix-agent/zabbix-agent.conf.j2 | 6 |
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 %} |