Zabbix

From AlphaBook
Revision as of 15:15, 22 December 2018 by Admin (talk | contribs) (Error: Zabbix server is not running:the information displayed may not be current)
Jump to: navigation, search

Zabbix

  • 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 '123.com';
  • quit;
  • zcat /usr/share/doc/zabbix-server-mysql-4.0.3/create.sql.gz | mysql -uzabbix -p123.com zabbix
  • mysql -u root -p
  • use zabbix;
  • show tables;
  • quit;

Configure the database for Zabbix server

  • vi /etc/zabbix/zabbix_server.conf
  • DBPassword=123.com

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

Login

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