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 Sidecar mode in Docker Compose

Table of contents What is Docker Compose Requirem...

Detailed steps to install Mysql5.7.19 using yum on Centos7

There is no mysql by default in the yum source of...

The difference between KEY, PRIMARY KEY, UNIQUE KEY, and INDEX in MySQL

The problem raised in the title can be broken dow...

The most comprehensive explanation of the locking mechanism in MySQL

Table of contents Preface Global Lock Full databa...

Experience in solving tomcat memory overflow problem

Some time ago, I submitted a product version to t...

How to implement Echats chart large screen adaptation

Table of contents describe accomplish The project...

How to recover files accidentally deleted by rm in Linux environment

Table of contents Preface Is there any hope after...

Detailed explanation of how to cleanly uninstall Docker

First, the server environment information: Reason...

Simple encapsulation of axios and example code for use

Preface Recently, when I was building a project, ...

How to remove the dividing line of a web page table

<br />How to remove the dividing lines of a ...

How to encapsulate axios in Vue project (unified management of http requests)

1. Requirements When using the Vue.js framework t...

How to use vs2019 for Linux remote development

Usually, there are two options when we develop Li...

Methods and steps for deploying multiple war packages in Tomcat

1 Background JDK1.8-u181 and Tomcat8.5.53 were in...