25 lines
772 B
Django/Jinja
25 lines
772 B
Django/Jinja
# general
|
|
Hostname={{ zabbix_agent_hostname | default(inventory_hostname) }}
|
|
Server={{ zabbix_proxy_address }}:{{ zabbix_proxy_port }}
|
|
ServerActive={{ zabbix_proxy_address }}:{{ zabbix_proxy_port }}
|
|
ListenPort={{ zabbix_agent_listen_port }}
|
|
HostMetadataItem=system.uname
|
|
HostInterface={{ zabbix_agent_hostinterface | default(inventory_hostname) }}
|
|
AllowKey=system.run[*]
|
|
Timeout=30
|
|
LogType=system
|
|
DebugLevel=1
|
|
|
|
{% if zabbix_agent_psk_enable %}
|
|
# psk
|
|
TLSConnect=psk
|
|
TLSAccept=psk
|
|
TLSPSKIdentity={{ zabbix_agent_psk_id }}
|
|
TLSPSKFile=/etc/zabbix/zabbix_agent.psk
|
|
{% endif %}
|
|
|
|
# advanced parameters
|
|
Include=/etc/zabbix/zabbix_agent2.d/*.conf
|
|
Include=/etc/zabbix/zabbix_agent2.d/plugins.d/*.conf
|
|
PluginSocket=/run/zabbix/agent.plugin.sock
|
|
ControlSocket=/run/zabbix/agent.sock
|