zabbix installation
zabbix official website https://www.zabbix.com/
1, the installation zabbix yum source
RPM -ivh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
2, the installation ZABBIX: yum the install ZABBIX-Agent ZABBIX-GET ZABBIX-Server-mysql ZABBIX-Web ZABBIX-Web-mysql
. 3, on the mysql master and slave1 modified mysql configuration file, add a line parameter [mysqld] under
character_set_server utf8 =
4 ,. after modifying restart MySQL: Service mysqld restart
5 ,. to create a database master zabbix libraries:
the create database Character zabbix the SET utf8;
6, zabbix back to the server, enter the following directory began to prepare raw data into zabbix of:
[root @ aming01 ~] position #ls /usr/share/doc/zabbix-server-mysql-4.0.10/create.sql.gz // database
/usr/share/doc/zabbix-server-mysql-4.0. 10 / create.sql.gz
[aming01 the root @ ~] # gzip -d /usr/share/doc/zabbix-server-mysql-4.0.10/create.sql.gz // database using gzip -d decompress
[ aming01 ~ @ root] # LS /usr/share/doc/zabbix-server-mysql-4.0.10/
the AUTHORS ChangeLog after COPYING create.sql NEWS README // unpack files create.sql
3, [root @ aming01 ~] # mysql -uroot -paming01 // landing mysql database
mysql> create database zabbix; // create zabbix Database
Query OK, 1 row affected (0.25 sec)
mysql> grant all on zabbix * to 'zabbix'@'127.0.0.1' identified by 'zabbix-123';. // zabbix database to connect to (127.0.0.1 modified to correspond to the ip address) to give permission
Query OK, 0 rows affected (0.00 sec )
4, vim /etc/zabbix/zabbix-server.conf several modified as follows:
DBHost = 127.0.0.1 // zabbix database to be connected (corresponding modifications to the database server address)
DBName=zabbix
DBUser=zabbix
DBPassword = zabbix-123 // front connection authorized password
5 into the database:
[root @ aming01 ~] # ls /usr/share/doc/zabbix-server-mysql-4.0.10/create.sql.gz // location database
/usr/share/doc/zabbix-server-mysql-4.0. 10 / create.sql.gz
[aming01 the root @ ~] # gzip -d /usr/share/doc/zabbix-server-mysql-4.0.10/create.sql.gz // database using gzip -d decompress
[ aming01 ~ @ root] # LS /usr/share/doc/zabbix-server-mysql-4.0.10/
the AUTHORS ChangeLog after COPYING create.sql NEWS README // unpack files create.sql
[Root @ aming01 ~] # mysql -uroot -paming01 zabbix </usr/share/doc/zabbix-server-mysql-4.0.10/create.sql // database into zabbix
[Root @ aming01 ~] # systemctl start zabbix-server // to start zabbix
[Root @ aming01 ~] # netstat -ltnp // see zabbix-server listening port number of 10051
Start zabbix-agent:
[Root @ aming01 ~] # vim /etc/zabbix/zabbix_agentd.conf // edit zabbix-agent configuration file
Server=127.0.0.1
ServerActive=127.0.0.1
[Root @ aming01 ~] # systemctl start zabbix-agent start zabbix-agent client
[Root @ aming01 ~] # netstat -ltnp // zabbix-agent will be able to see the monitor port 10050
[Root @ aming01 ~] # systemctl start httpd // start httpd service
[root@aming01 ~]# netstat -ltnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:111 0.0.0.0: LISTEN 1/systemd
tcp 0 0 0.0.0.0:22 0.0.0.0: LISTEN 922/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0: LISTEN 1025/master
tcp 0 0 0.0.0.0:10050 0.0.0.0: LISTEN 3496/zabbix_agentd
tcp 0 0 0.0.0.0:10051 0.0.0.0: LISTEN 2368/zabbix_server
tcp6 0 0 :::111 ::: LISTEN 1/systemd
tcp6 0 0 :::80 ::: LISTEN 3607/httpd
tcp6 0 0 :::22 ::: LISTEN 922/sshd
tcp6 0 0 ::1:25 ::: LISTEN 1025/master
tcp6 0 0 :::10050 ::: LISTEN 3496/zabbix_agentd
tcp6 0 0 :::10051 ::: LISTEN 2368/zabbix_server
tcp6 0 0 :::3306 ::: LISTEN 2182/mysqld
[root@aming01 ~]#
1, the configuration starts the browser installed in the browser and enter zabbix http://192.168.88.128/zabbix/ below to enter the configuration page zabbix:
2, and then to the FIG.
3, vim /etc/php.ini modify the configuration file date.timezone = Asia / Shanghai, and then restart the httpd service
[root @ aming01 ~] # systemctl restart httpd
Just refresh the page to go
4, set the mysql database of relevant information and zabbix user name and password
5, the definition information zabbix server
6,
Enter a good default user name and password to enter the monitoring page zabbix
Below modify the default password zabbix and modify the language is Chinese, the last point update to confirm update