Monitoring psk (#2)
Co-authored-by: DerLinkman <derlinkman@gmail.com> Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
@@ -1,11 +1,23 @@
|
||||
# {{ ansible_managed }}
|
||||
PidFile=/run/zabbix/zabbix_agent2.pid
|
||||
LogFile=/var/log/zabbix/zabbix_agent2.log
|
||||
LogFileSize=0
|
||||
Server={{ monitoring_zabbix_passive_servers | join(',') }}
|
||||
{% if monitoring_zabbix_active_servers | length > 0 %}
|
||||
ServerActive={{ monitoring_zabbix_active_servers | join(',') }}
|
||||
{% endif %}
|
||||
HostnameItem=system.hostname
|
||||
ListenPort={{ monitoring_zabbix_listen_port }}
|
||||
Include=/etc/zabbix/zabbix_agent2.d/*.conf
|
||||
# {{ 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 }}
|
||||
Reference in New Issue
Block a user