Ansible role providing the installation and configuration of Zabbix agent. Compatible with zabbix >=4.4, 5.0, and 5.2.
- Accurate inventory_hostname
zabbix_version
(5.0) - zabbix version. must be >= 4.4 for agent2.zabbix_agent_pid_file
(/var/run/zabbix/zabbix_agent2.pid) - path to pid filezabbix_agent_log_file
(/var/log/zabbix/zabbix_agent2.log) - path to zabbix agent logzabbix_agent_config_file
(/etc/zabbix/zabbix_agent2.conf) - config file for zabbix agentzabbix_agent_control_socket_path
(/tmp/agent.sock) - path to control socketzabbix_agent_include_path
(/etc/zabbix/zabbix_agent2.d/*.conf) - path to userparameter fileszabbix_agent_psk_file
(/etc/zabbix/zabbix_agent2.psk) - pre shared key filezabbix_agent_psk_hash
(kmWCW6jtSSFK7XRuMJct2fVINNL1QTYt) - pre shared keys are an md5 of inventory_hostname + hash specified here. Please change this by runningpwgen -s 32 1
zabbix_agent_log_size
(0) - size in MB to rotate log. 0 = use logrotatezabbix_agent_server_ip
(127.0.0.1) - ip address of zabbix serverzabbix_agent_server_active_ip
(127.0.0.1) - ip of zabbix server providing active checkszabbix_agent_timeout
(3) - amount of time to spend on processingzabbix_agent_allow_remote_commands
(false) - allow zabbix-server to invoke commands on this agent when set totrue
.
- None
- hosts: all
become: true
roles:
- { role: revenni.zabbix_agent2, tags: zabbix_agent2 }
MIT