revenni.zabbix_agent

revenni.zabbix_agent

Ansible role for installing and setting up the Zabbix agent (version 4.0)

Platforms License

Requirements

  • None

Role Variables

General variables (found in defaults/main.yml and can be changed in vars/main.yml)

  • zabbix_agent_pid_file (/var/run/zabbix/zabbix_agentd.pid) - location of the PID file
  • zabbix_agent_log_file (/var/log/zabbix/zabbix_agentd.log) - location of the Zabbix agent log file
  • zabbix_agent_config_file (/etc/zabbix/zabbix_agentd.conf) - configuration file for the Zabbix agent
  • zabbix_agent_include_path (/etc/zabbix/zabbix_agent.d/*.conf) - location of user parameter files
  • zabbix_agent_psk_file (/etc/zabbix/zabbix_agentd.psk) - pre-shared key file
  • zabbix_agent_psk_hash (kmWCW6jtSSFK7XRuMJct2fVINNL1QTYt) - pre-shared keys are an md5 hash of ansible_fqdn + the hash specified here. Change this by running pwgen -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

Dependencies

  • None

Example Playbook

- hosts: all
  become: true
  roles:
     - { role: revenni.zabbix_agent, tags: zabbix_agent }

License

MIT

Author Information

Informazioni sul progetto

zabbix-agent 4.0 installation and configuration

Installa
ansible-galaxy install revenni.zabbix_agent
Licenza
mit
Download
83
Proprietario
Revenni is a Toronto based consulting firm specializing in open source Infrastructure as Code, System Administration / DevOps, and Remediation services.