23 lines
980 B
Django/Jinja
23 lines
980 B
Django/Jinja
# {{ ansible_managed }}
|
|
PidFile=/run/zabbix/zabbix_agent2.pid
|
|
LogFile=/var/log/zabbix/zabbix_agent2.log
|
|
LogFileSize=0
|
|
{% if monitoring_zabbix_proxy_address | length > 0 %}
|
|
Server={{ (monitoring_zabbix_passive_servers | union([monitoring_zabbix_proxy_address])) | unique | join(',') }}
|
|
ServerActive={{ monitoring_zabbix_proxy_address }}
|
|
{% else %}
|
|
Server={{ monitoring_zabbix_passive_servers | join(',') }}
|
|
{% if monitoring_zabbix_active_servers | length > 0 %}
|
|
ServerActive={{ monitoring_zabbix_active_servers | join(',') }}
|
|
{% endif %}
|
|
{% endif %}
|
|
Hostname={{ monitoring_zabbix_host_name }}
|
|
HostnameItem=system.hostname
|
|
ListenPort={{ monitoring_zabbix_listen_port }}
|
|
Include=/etc/zabbix/zabbix_agent2.d/*.conf
|
|
|
|
# --- TLS (PSK) ----------------------------------------------------------------
|
|
TLSConnect={{ monitoring_zabbix_tls_connect }}
|
|
TLSAccept={{ monitoring_zabbix_tls_accept }}
|
|
TLSPSKIdentity={{ monitoring_zabbix_psk_identity }}
|
|
TLSPSKFile={{ monitoring_zabbix_psk_file }} |