Skip to end of metadata
Go to start of metadata

Install Zabbix

Configure repositories and install Zabbix Server and Frontend

rpm -ivh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm 
yum-config-manager --enable rhel-7-server-optional-rpms
yum install zabbix-server-mysql zabbix-web-mysql

Confirm that MariaDB is installed correctly

shell> systemctl status mysql

If this MariaDB (or MySQL) is not installed, please refer to their install guide for more instruction.

To ensure that default character set is utf8 add to the following to /etc/my.cnf:

[mysql]
default-character-set=utf8

Configure Zabbix Server

Create Zabbix SQL User

SQL> create database zabbix;SQL> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbixpwd';

Import Initial Schema and Data

shell> zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix

Edit Zabbix Server Conf (/etc/zabbix/zabbix_server.conf)

DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbixpwd

SeLinux Configuration 

Selinux: If selinux is enabled, allow communication between zabbix frontend and server

setsebool -P httpd_can_connect_zabbix=on httpd_can_network_connect_db=on

Start Zabbix Server and Frontend

Start services and set to start at boot.

systemctl start zabbix-serversystemctl enable zabbix-serversystemctl start httpdsystemctl enable httpd


Configure Zabbix Frontend

Configure Timezone (/etc/httpd/conf.d/zabbix.conf)

php_value date.timezone America/Los_Angeles

Login to Frontend

  • Browse to: http://<zabbix-server-address>/zabbix
  • Click "Next Step"
  • Confirm that prerequisites are all correctly installed and click "Next Step"
  • Configure DB connection fields (use MySQL for Database type) and click "Next Step"
  • Configure Zabbix server details and click "Next Step"
  • Review Pre-installation summary and click "Next Step"
  • Click "Finish"


Configure Zabbix Agent

Use the steps below to install the zabbix agent on a ClustrixDB node.

Create user for zabbix agent in ClustrixDB
sql> grant usage on *.* to 'zabbix'@'%' identified by 'zabbixpwd';

Setup Zabbix repository & Install Agent


Configure zabbix_agent.conf to communicate with Zabbix Server


Server=<zabbix_server_ip>                 #zabbix server ip
ServerActive=<zabbix_server_ip>           #zabbix server ip
Hostname=<zabbix_server_hostname>         #zabbix hostname

Install ClustrixDB userparameter_mysql.conf


wget <userparameter_mysql.conf>

cp ~/userparameter_mysql.conf /etc/zabbix/zabbix_agentd.d/

Configure Zabbix login credentials


vim /var/lib/zabbix/.my.cnf
[mysql]
user=zabbix
password=zabbixpwd

[mysqladmin]
user=zabbix
password=zabbixpwd

Restart Zabbix Agent

systemctl restart zabbix-agent


  • No labels