Difference between revisions of "Zabbix"

From AlphaBook
Jump to: navigation, search
(Error: Zabbix server is not running:the information displayed may not be current)
(Error: Zabbix server is not running:the information displayed may not be current)
Line 47: Line 47:
  
 
== Error: Zabbix server is not running:the information displayed may not be current ==
 
== Error: Zabbix server is not running:the information displayed may not be current ==
* vi /etc/zabbix/web/zabbix.conf.php
+
* setsebool -P httpd_can_network_connect on
* $ZBX_SERVER      = '192.168.200.10';
+
* setsebool -P httpd_can_connect_zabbix 1
 +
* setsebool -P zabbix_can_network 1
 
* systemctl restart zabbix-server httpd
 
* systemctl restart zabbix-server httpd
  
 
== Zabbix on Ubuntu ==
 
== Zabbix on Ubuntu ==
 
* [[Zabbix on Ubuntu]]
 
* [[Zabbix on Ubuntu]]

Revision as of 14:28, 22 December 2018

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

  • setsebool -P httpd_can_network_connect on
  • setsebool -P httpd_can_connect_zabbix 1
  • setsebool -P zabbix_can_network 1
  • systemctl restart zabbix-server httpd

Zabbix on Ubuntu