Brief introduction
Zabbix is based on providing a distributed system monitoring and network monitoring capabilities WEB interface, enterprise-class open source solutions. It can monitor various network parameters to ensure the safe operation of the server system; and to provide a flexible notification mechanism to allow system administrators to quickly locate / solve problems.
A, Zabbix installation
1, Zabbix server installation
Installation Environment: CentOS Linux release 7.5 IP: 192.168.1.100
Ali yum install source
# wget https://mirrors.aliyun.com/zabbix/zabbix/4.4/rhel/7/x86_64/zabbix-release-4.4-1.el7.noarch.rpm
# rpm –ivh zabbix-release-4.4-1.el7.noarch.rpm
Zabbix-server installation package required
Zabbix server install and use the MySQL database
# yum -y install zabbix-server-mysql
Install Zabbix front-end and using MySQL database
# yum -y install zabbix-web-mysql
Installation Zabbix agent client, the machine monitor
# yum -y install zabbix-agent
Installation MariaDB database
# yum -y install mariadb-server
Start the database boot from the start & join
# systemctl start mariadb
# systemctl enable mariadb
Create the appropriate database and user Zabbix
Zabbix choose to create a database named zabbix, pay attention to the character set
MariaDB [(none)]> CREATE DATABASE zabbix CHARSET utf8 COLLATE utf8_bin;
Create Zabbix user name zabbixadmin, the password is 123456
MariaDB [(none)]> * the GRANT ZABBIX the TO ALL the ON ZABBIX. ADMIN @ localhost the IDENTIFIED BY '123456';
Import Zabbix comes with SQL statements
View directory SQL statement
#rpm -ql zabbix-server-mysql
...
/usr/share/doc/zabbix-server-mysql-4.4.3/create.sql.gz
...
Importing SQL statements to the database you just created zabbix
#zcat /usr/share/doc/zabbix-server-mysql-4.4.3/create.sql.gz | mysql -uzabbixadmin -p123456 zabbix
Modify Zabbix server configuration file /etc/zabbix_server.conf relevant parameters
# vim /etc/zabbix/zabbix_server.conf
...
DBHost=localhost
DBName=zabbix
DBUser=zabbixadmin
DBPassword=123456
...
Start Zabbix Services & join boot from the start
# systemctl start zabbix-server
# systemctl enable zabbix-server
Modify httpd configuration file /etc/httpd/conf.d/zabbix.conf
Change the time zone
# vim /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai
Service httpd start & join boot from the start
# systemctl start httpd
# systemctl enable httpd
2, Zabbix client install Linux
Installation Environment: CentOS release 6.9 (Final) IP: 192.168.1.200
Ali yum install source
Note: This client chose CentOS6, you need to install a CentOS yum source 6, mirrors if you want to install a different version of Ali's need to find their own
# wget --no-check-certificate https://mirrors.aliyun.com/zabbix/zabbix/4.4/rhel/6/x86_64/zabbix-release-4.4-1.el6.noarch.rpm
# rpm –ivh zabbix-release-4.4-1.el6.noarch.rpm
Installation package Zabbix-agent required
# yum install zabbix-agent
Modify agent profiles /etc/zabbix/zabbix_agentd.conf
# vim /etc/zabbix/zabbix_agentd.conf
...
= 192.168.1.100 Server ip address # Zabbix Server's
ServerActive=192.168.1.100
Hostname=web01
...
Start agent added to boot from the start & Services
# service zabbix-agent start # chkconfig --add zabbix-agent # chkconfig zabbix-agent on
3, Zabbix client to install Windows
The windows client download zabbix
Official Address: https://www.zabbix.com/cn/download_agents
Create an installation directory, extract the installation package
Edit client configuration file
Field modified as follows:
LogFile=c:\zabbix\zabbix_agentd.log
Server=192.168.1.100
ServerActive=192.168.1.100
Hostname=windows-web
Run as administrator cmd
In the cmd window run the command
C:Windows\system32> cd c:\zabbix
c: \ zabbix> bin \ zabbix_agentd -i -c conf \ zabbix_agentd.conf # zabbix client installation
c: \ zabbix> bin \ zabbix_agentd -s -c conf \ zabbix_agentd.conf # services start zabbix
Two, Web terminal basic configuration
1, browser login Zabbix
http://192.168.1.100/zabbix
2, the basic settings Check
3, the input configuration information
4, enter the server name
5, log Zabbix
The default user name: Admin
System default password: zabbix
6, modify the language is Chinese
7, modify garbled phenomenon
Original garbled phenomenon
Modification method:
Server-side install fonts
# yum install wqy-microhei-fonts -y
Change font link to the newly installed fonts
# rm /usr/share/zabbix/assets/fonts/graphfont.ttf
# Ln -en /usr/share/fonts/wqy-microhei/wqy-microhei.ttc /usr/share/zabbix/assets/fonts/graphfont.ttf
After modifying the page to refresh