Build zabbix monitoring zabbix4.2 in CentOS7.6

Build zabbix monitoring zabbix4.2 in CentOS7.6

Excellentj Follow

0.7 2019.05.17 10:26* Word count 372 read 489 comments 0 likes 6

  1. Install Zabbix repository

Official document# rpm -Uvh https:/ /repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm``#yum clean all

  1. Install Zabbix server, front end, proxy

# yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent

# Note: If the above item has been unsuccessfully downloaded, it may be the problem of the first source, or network problem, or yum.repos.d/There are too many sources,
solution:
[ root@m01 ~]# cd /etc/yum.repos.d/[root@m01 /etc/yum.repos.d]# ls
as4k.repo         CentOS-CR.repo         CentOS-Media.repo    default            nginx.repo
back              CentOS-Debuginfo.repo  CentOS-Sources.repo  epel.repo          zabbix.repo 
CentOS-Base.repo  CentOS-fasttrack.repo  CentOS-Vault.repo    epel-testing.repo  
# Zabbix.The repo indicates that the first article is successful, but if it still fails to install, it may be because there are too many things in it, and I did not get it. You can try a few more times.,
# If it still doesn’t work, create a directory and leave a zabbix unless all sources are removed..repo try again
# Generally, the download is still unsuccessful, but just move the source back and download again. I tested it twice and it was successful.
  1. Create the initial database

Official document

# mysql -uroot -p``password``#Enter mysql and perform the following operations ``mysql> create database zabbix character set utf8 collate utf8_bin;''mysql> grant all privileges on zabbix.* to zabbix[@localhost] (https://my.oschina.net/u/570656) identified by'password';``mysql> quit;

  1. Import the initial structure and data. You will be prompted to enter the newly created password.

# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix

  1. Configure database for Zabbix server

Edit the file /etc/zabbix/zabbix_server.conf

DBPassword=password

  1. Configure PHP for Zabbix frontend

Edit the file /etc/httpd/conf.d/zabbix.conf, uncomment it and set the correct time zone for you. # php_value date.timezone Asia/Shanghai

  1. Start Zabbix server and agent process

Start the Zabbix server and agent process and enable it to start when the system boots:

# systemctl restart zabbix-server zabbix-agent httpd

# Note: After entering the above restart error report is Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe"for details.
# After checking on the Internet, it is because port 80 nginx occupies pkill.
[ root@m01 /etc/yum.repos.d]# netstat -lntup|grep nginx
tcp        000.0.0.0:800.0.0.0:*               LISTEN      46352/nginx: master
[ root@m01 /etc/yum.repos.d]# pkill nginx

# systemctl enable zabbix-server zabbix-agent httpd

Now your Zabbix server is up and running!

Configure Zabbix frontend####

Connect to the newly installed Zabbix frontend: http://server_ip_or_name/zabbix
Follow the steps described in the Zabbix document: Official document installation front end

Start using Zabbix

Please refer to Official Getting Started Guide

Step practice

I am using Google Chrome, you can right-click and select Translate to Chinese

Note: 4.2 version support is about to end

Take a little gift away, come to Jianshu and follow me

( adsbygoogle = window.adsbygoogle || []).push({});

Recommended Posts

Build zabbix monitoring zabbix4.2 in CentOS7.6
Build zabbix monitoring zabbix4.2 in CentOS7.6
CentOS7.3 64 bit, build Zabbix3.4
Build Hadoop in CentOS
Build Yum private warehouse in Centos7.3
CentOS 7.4 install Zabbix 3.4
CentOS 7.3 install Zabbix3
CentOS7 build jenkins
Centos build lnmp
Centos7 build python3.8.5+scrapy+gerapy
Construction of Zabbix monitoring platform under CentOS7
centos 6.5 install zabbix 4.4
Build Discuz Forum in LNMP Environment under CentOS7
Build Dedecms website in LNMP environment under CentOS7
CentOS build private git
Linux (centos7) build gitlab
Build k8s1.9.9 on centos7
CentOS 8 install ZABBIX4.4 guide
CentOS6.7 build LNMP environment
Zabbix 2.2.20 installation details (Centos6.9)
Install MySQL5.7 in centos7
Centos6.9 build rabbitmq 3.6.8 cluster
Install php in centos
Centos7.6 build LNMP environment
Explore Zabbix 5.0 LTS - CentOS 8 (1)
Centos7 build Kubernetes cluster
Jenkins build on centos
Install redis5.0 in CentOS7
Centos7 build DNS service
KVM virtualization in centos
CentOS 7 build LNMP environment
Centos 7 install Zabbix 3.4 original
CentOs7.3 build Solr stand-alone service
Build OpenV** Server under CentOS7
CentOs7.3 build RabbitMQ 3.6 stand-alone service
Build OpenLDAP server under CentOS7
Build MariaDB replication on CentOS
CentOs7.3 build ZooKeeper-3.4.9 stand-alone service
Debug Kernel Panic in Centos
Install Zabbix 3.4 based on CentOS 7
CentOs7.3 build SolrCloud cluster service
CentOS 8.0.1905 install ZABBIX4.4 version (verified)
Centos network settings in virtualbox
Update gcc to 6.4.0 in centos
Install JDK8 in rpm on CentOS7
Minimal install JDK 1.8 tutorial in CentOS 7
CentOS8.1 build Gitlab server detailed tutorial
Detailed use of nmcli in CentOS8
How to install PHP7.4 in CentOS
CentOS configuration git server in VirtualBox
Install MySql with Docker in CentOS7
Build a PXC cluster under CentOS8
Install Percona Server database (in CentOS 8)
Install java in yum mode in Centos
Centos6 method steps to build gitlab
Build an FTP server under centos7
CentOS7.2 install lepus database monitoring system
Build Elasticsearch 6.2.4 (centos) based on docker
How to install HDP2.6 in Centos7.2
Build Nginx environment on Linux (CentOS)
Install Centos7 operating system in Docker