From AlphaBook
Jump to: navigation, search


  • 20 years of experience / 100% Free and Open Source Software / 300 000+ installation worldwide
  • Monitor anything Solutions for any kind of IT infrastructure, services, applications, resources
  • Zabbix version 4.0 LTS on Ubuntu 18.04 and MySQL

Install Zabbix repository

Install Zabbix server, frontend, agent

  • yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent

Install and configure Mariadb

  • yum install mariadb mariadb-server
  • systemctl start mariadb
  • mysql_secure_installation
  • mysql -u root -p
  • create database zabbix character set utf8 collate utf8_bin;
  • grant all privileges on zabbix.* to zabbix@localhost identified by '';
  • quit;
  • zcat /usr/share/doc/zabbix-server-mysql-4.0.3/create.sql.gz | mysql -uzabbix zabbix
  • mysql -u root -p
  • use zabbix;
  • show tables;
  • quit;

Configure the database for Zabbix server

  • vi /etc/zabbix/zabbix_server.conf

Configure PHP for Zabbix frontend

  • vi /etc/httpd/conf.d/zabbix.conf
  • php_value date.timezone Asia/Shanghai

Start Zabbix server and agent processes

  • systemctl restart zabbix-server zabbix-agent httpd mariadb
  • systemctl enable zabbix-server zabbix-agent httpd mariadb

Configure firewall

  • firewall-cmd --permanent --add-service=http
  • firewall-cmd --reload
  • firewall-cmd --list-services


Error: Zabbix server is not running:the information displayed may not be current

  • yum install policycoreutils-python
  • setsebool -P httpd_can_network_connect on
  • setsebool -P httpd_can_connect_zabbix on
  • setsebool -P zabbix_can_network on
  • systemctl restart zabbix-server httpd


Zabbix on Ubuntu