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:
|
<<: js to realize a simple advertising window
>>: MySQL Index Optimization Explained
Table of contents 1. forEach() 2. arr.filter() 3....
1. The Importance of Indexes Indexes are used to ...
The 404 problem occurs in the Tomcat test. The pr...
Table of contents Preface 1. Application componen...
Preface This article will share some docker-compo...
Preface In the past, I always switched Python ver...
1. First find the Data file on the migration serv...
For evenly distributed layouts, we generally use ...
My machine environment: Windows 2008 R2 MySQL 5.6...
This article tests the environment: CentOS 7 64-b...
Today at work, a friend I added temporarily asked ...
Table of contents 1. unzip command 1.1 Syntax 1.2...
Table of contents question: 1. Enable remote logi...
Preface This article mainly introduces the cross-...