Detailed tutorial for upgrading zabbix monitoring 4.4 to 5.0

Detailed tutorial for upgrading zabbix monitoring 4.4 to 5.0

1. Zabbix backup

[root@iZ2zeapnvuohe8p14289u6Z /]# mkdir -p /soft/zabbixback/zabbix-backup
 
[root@iZ2zeapnvuohe8p14289u6Z /]# cp /etc/zabbix/zabbix_server.conf /soft/zabbixback/zabbix-backup
 
[root@iZ2zeapnvuohe8p14289u6Z /]# cp /etc/zabbix/zabbix_agentd.conf /soft/zabbixback/zabbix-backup
 
[root@iZ2zeapnvuohe8p14289u6Z /]# cp /etc/zabbix/web/zabbix.conf.php /soft/zabbixback/zabbix-backup
 
[root@iZ2zeapnvuohe8p14289u6Z /]# cp -R /usr/share/zabbix/ /soft/zabbixback/zabbix-backup
 
[root@iZ2zeapnvuohe8p14289u6Z /]# cp –R /usr/share/doc/zabbix-* /soft/zabbixback/zabbix-backup

2. MariaDB database backup

[root@iZ2zeapnvuohe8p14289u6Z /]# mysql # Enter mysql
 
MariaDB [(none)]> select count(8) tables,table_schema from information_schema.tables where table_schema = 'zabbix';
+--------+--------------+
| tables | table_schema |
+--------+--------------+
| 166 | zabbix |
+--------+--------------+
1 row in set (0.00 sec)
 
MariaDB [(none)]> mysqldump -uzabbix -pzabbix --opt --skip-lock-tables zabbix | gzip > /home/backup/zabbix_$(date +%Y%m%d_%H%M%S).sql.gz
 
[root@iZ2zeapnvuohe8p14289u6Z /]# ll /soft/zabbixback
 
Total dosage 5120
 
-rw-r--r-- 1 root root 20 July 23 10:48 zabbix_20200726_104832.sql.gz
 
-rw-r--r-- 1 root root 526 July 23 10:48 zabbix_20200726_104849.sql.gz
 
drwxr-xr-x 3 root root 96 July 23 10:45 zabbix-backup<br data-filtered="filtered"><br data-filtered="filtered">

3. Stop zabbix-server, zabbix-agent

[root@iZ2zeapnvuohe8p14289u6Z /]# systemctl stop zabbix-agent zabbix-server

4. Uninstall the old version 4.4

[root@iZ2zeapnvuohe8p14289u6Z /]# yum remove zabbix-web-* httpd

5. 4.4 upgrade to 5.0

[root@iZ2zeapnvuohe8p14289u6Z /]# rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
 
[root@iZ2zeapnvuohe8p14289u6Z /]# yum clean all
 
[root@iZ2zeapnvuohe8p14289u6Z /]# yum update zabbix-server zabbix-agent -y
 
[root@iZ2zeapnvuohe8p14289u6Z /]# yum-config-manager --enable rhel-server-rhscl-7-rpms

6. Edit the zabbix.repo file

[root@iZ2zeapnvuohe8p14289u6Z /]# vim /etc/yum.repos.d/zabbix.repo 

7. Install the zabbix front-end package

[root@iZ2zeapnvuohe8p14289u6Z /]# yum install zabbix-web-mysql-scl zabbix-apache-conf-scl -y

8. Zabbix front-end PHP configuration

[root@iZ2zeapnvuohe8p14289u6Z /]# vim /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf 

9. Start the zabbix server and agent and set them to start at boot

[root@iZ2zeapnvuohe8p14289u6Z /]# systemctl restart zabbix-server zabbix-agent httpd rh-php72-php-fpm
[root@iZ2zeapnvuohe8p14289u6Z /]# systemctl enable zabbix-server zabbix-agent httpd rh-php72-php-fpm

This is the end of this article about upgrading zabbix monitoring 4.4 to 5.0. For more relevant zabbix monitoring content, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Using zabbix to monitor the ogg process (Windows platform)
  • Detailed explanation of monitoring Jenkins process based on zabbix
  • Detailed explanation of the process of Zabbix active, passive and web monitoring in distributed monitoring system
  • Distributed monitoring system Zabbix uses SNMP and JMX channels to collect data
  • Detailed explanation of Zabbix monitoring SQL Server service status
  • How to monitor mysql using zabbix
  • Detailed steps for adding hosts you need to monitor in zabbix
  • Example code for configuring monitoring items and aggregated graphics in Zabbix
  • Using zabbix to monitor the ogg process (Linux platform)

<<:  js to realize a simple advertising window

>>:  MySQL Index Optimization Explained

Recommend

Detailed explanation of the new array methods in JavaScript es6

Table of contents 1. forEach() 2. arr.filter() 3....

A brief understanding of the three principles of adding MySQL indexes

1. The Importance of Indexes Indexes are used to ...

Detailed explanation of the solution to Tomcat's 404 error

The 404 problem occurs in the Tomcat test. The pr...

Why node.js is not suitable for large projects

Table of contents Preface 1. Application componen...

Detailed explanation of software configuration using docker-compose in linux

Preface This article will share some docker-compo...

Steps to install Pyenv under Deepin

Preface In the past, I always switched Python ver...

Detailed explanation of how to migrate a MySQL database to another machine

1. First find the Data file on the migration serv...

...

Example of using negative margin to achieve average layout in CSS

For evenly distributed layouts, we generally use ...

How to reset the root password of Mysql in Windows if you forget it

My machine environment: Windows 2008 R2 MySQL 5.6...

Install and configure MySQL 5.7 under CentOS 7

This article tests the environment: CentOS 7 64-b...

Using iframe techniques to obtain visitor QQ implementation ideas and sample code

Today at work, a friend I added temporarily asked ...

Detailed explanation of Linux command unzip

Table of contents 1. unzip command 1.1 Syntax 1.2...

MySQL 1130 exception, unable to log in remotely solution

Table of contents question: 1. Enable remote logi...

Web development tutorial cross-domain solution detailed explanation

Preface This article mainly introduces the cross-...