revenni.zabbix_agent2
revenni.zabbix_agent2
This is an Ansible role that installs and configures the Zabbix agent. It works with Zabbix versions 4.4, 5.0, and 5.2 or higher.
Requirements
- Correct inventory_hostname
Role Variables
General variables (found in defaults/main.yml and can be changed in vars/main.yml)
zabbix_version
(5.0) - Version of Zabbix, must be 4.4 or higher for agent2.zabbix_agent_pid_file
(/var/run/zabbix/zabbix_agent2.pid) - Path for the PID file.zabbix_agent_log_file
(/var/log/zabbix/zabbix_agent2.log) - Path for the Zabbix agent log.zabbix_agent_config_file
(/etc/zabbix/zabbix_agent2.conf) - Configuration file for the Zabbix agent.zabbix_agent_control_socket_path
(/tmp/agent.sock) - Path for the control socket.zabbix_agent_include_path
(/etc/zabbix/zabbix_agent2.d/*.conf) - Path for user parameter files.zabbix_agent_psk_file
(/etc/zabbix/zabbix_agent2.psk) - File for pre-shared key.zabbix_agent_psk_hash
(kmWCW6jtSSFK7XRuMJct2fVINNL1QTYt) - Pre-shared keys are an MD5 hash of inventory_hostname plus the specified hash. Change this by runningpwgen -s 32 1
.zabbix_agent_log_size
(0) - Size in MB for log rotation. 0 means use logrotate.zabbix_agent_server_ip
(127.0.0.1) - IP address of the Zabbix server.zabbix_agent_server_active_ip
(127.0.0.1) - IP of the Zabbix server for active checks.zabbix_agent_timeout
(3) - Time spent on processing.zabbix_agent_allow_remote_commands
(false) - If set totrue
, allows Zabbix server to run commands on this agent.
Dependencies
- None
Example Playbook
- hosts: all
become: true
roles:
- { role: revenni.zabbix_agent2, tags: zabbix_agent2 }
License
MIT
Author Information
Informazioni sul progetto
zabbix-agent2 installation and configuration (>=4.4, 5.0, 5.2)
Installa
ansible-galaxy install revenni.zabbix_agent2
Licenza
mit
Download
542
Proprietario
Revenni is a Toronto based consulting firm specializing in open source Infrastructure as Code, System Administration / DevOps, and Remediation services.