Add monitoring role and playbook for zabbix agent2 (incl. docker config)
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
# {{ ansible_managed }}
|
||||
Plugins.Docker.Endpoint={{ monitoring_zabbix_docker_endpoint }}
|
||||
@@ -0,0 +1,11 @@
|
||||
# {{ 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
|
||||
Reference in New Issue
Block a user