Difference between revisions of "Zabbix"
From AlphaBook
(→Error: Zabbix server is not running:the information displayed may not be current) |
|||
Line 52: | Line 52: | ||
* setsebool -P zabbix_can_network on | * setsebool -P zabbix_can_network on | ||
* systemctl restart zabbix-server httpd | * systemctl restart zabbix-server httpd | ||
+ | |||
+ | == Template == | ||
+ | * https://share.zabbix.com | ||
== Zabbix on Ubuntu == | == Zabbix on Ubuntu == | ||
* [[Zabbix on Ubuntu]] | * [[Zabbix on Ubuntu]] |
Latest revision as of 02:15, 26 December 2018
Contents
- 1 Zabbix
- 2 Install Zabbix repository
- 3 Install Zabbix server, frontend, agent
- 4 Install and configure Mariadb
- 5 Configure the database for Zabbix server
- 6 Configure PHP for Zabbix frontend
- 7 Start Zabbix server and agent processes
- 8 Configure firewall
- 9 Login
- 10 Error: Zabbix server is not running:the information displayed may not be current
- 11 Template
- 12 Zabbix on Ubuntu
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
- http://server_ip_or_name/zabbix
- Username: Admin
- Password: zabbix
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