zabbix monitoring system

Install the database

[[email protected] ~]# yum -y install mariadb mariadb-server
Insert picture description here


Start the mysql service and set it to start automatically

[[email protected] ~]# systemctl enable mariadb
[[email protected] ~]# systemctl start mariadb
Insert picture description here


Set password login data

[[email protected] ~]# mysqladmin -uroot password 'pwd123'
[[email protected] ~]# mysql -uroot -ppwd123
Insert picture description here


Create database

MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
Insert picture description here


Authorized users to access zaabix database

MariaDB [(none)]> create user 'zabbix'@'localhost' identified by 'pwd123';
Insert picture description here


Update takes effect

MariaDB [(none)]> grant all privileges on zabbix.* to 'zabbix'@'localhost';
Insert picture description here


Import data into the database

[[email protected] ~]# zcat /usr/share/doc/zabbix-server-mysql-3.4.1/create.sql.gz | mysql -uzabbix -ppwd123 zabbix
Insert picture description here


Install server side and apache

[[email protected] ~]# yum -y install zabbi-server-mysql zabbix-web-mysql zabbix-agent

Modify zabbix server configuration file

[[email protected] ~]# vim /etc/zabbix/zabbix_server.conf 
Insert picture description here


Insert picture description here


Modify time zone

[[email protected] ~]# vim /etc/httpd/conf.d/zabbix.conf
Insert picture description here


Start the server

[[email protected] ~]# systemctl start zabbix-server httpd zabbix-agent
[[email protected] ~]# systemctl enable zabbix-server httpd zabbix-agent
Insert picture description here


Access

Insert picture description here
Insert picture description here


listening port

[[email protected] ~]# netstat -anptu | grep 10051
Insert picture description here
[[email protected] ~]# netstat -anptu | grep 10050
Insert picture description here


Configuration support Chinese

[[email protected] ~]# vim /usr/share/zabbix/include/defines.inc.php
Insert picture description here


Display Chinese modified successfully

Insert picture description here


Install the client

[[email protected] ~]# rm -rf /etc/yum.repos.d/CentOS-*
[[email protected] ~]# yum -y install zabbix-agent
Insert picture description here


Modify the client main configuration file

[[email protected] ~]# vim /etc/zabbix/zabbix_agentd.conf
Insert picture description here


Start the client and set it to start automatically

[[email protected] ~]# systemctl start zabbix-agent
[[email protected] ~]# systemctl enable zabbix-agent

Configure windows client
Modify configuration file

Insert picture description here


Add configuration file

C:\zabbix\bin\win64>zabbix_agentd.exe -c C:\zabbix\conf\zabbix_agentd.win.conf -i
Insert picture description here
C:\zabbix\bin\win64>zabbix_agentd.exe -c C:\zabbix\conf\zabbix_agentd.win.conf -s
Insert picture description here


Insert picture description here