This is an Ansible role for installing Zabbix server.
You may also be interested in:
- an Ansible role for Zabbix agent
- an Ansible role for the Zabbix frontend
Installs the zabbix-server-mysql
package which provides the
following commands:
zabbix_server
-- Zabbix serverzabbix_get
-- used to get data from Zabbix agents via command-line
Creates the files:
/etc/zabbix/zabbix_server.conf
-- configuration file for Zabbix agent/etc/logstash/conf.d/zabbix-server.conf
-- input file for logstash/var/log/zabbix-server
-- log directory
Leaves a service zabbix-server
running on port 10051.
Use the role in a playbook like this:
- hosts: all
roles:
- zabbix-server
Set the zabbix_server_use_logstash
to false
to skip the logstash
configuration.
The following variables are exposed for configuration
mysql_root_password
-- the password for the MySQL root userzabbix_database_host
-- host for the databasezabbix_database_port
-- port for the databasezabbix_database_username
-- username to connect to the database aszabbix_database_password
-- password to connect to the database withzabbix_database_name
-- name of the databasezabbix_server_use_logstash
-- set tofalse
to skip logstash configuration