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 What is Docker Compose Requirem...
There is no mysql by default in the yum source of...
The problem raised in the title can be broken dow...
Table of contents Preface Global Lock Full databa...
Some time ago, I submitted a product version to t...
Table of contents describe accomplish The project...
Table of contents Preface Is there any hope after...
Recently, when running an old RN project, the fol...
First, the server environment information: Reason...
Generally, after there is a menu on the left, the...
Preface Recently, when I was building a project, ...
<br />How to remove the dividing lines of a ...
1. Requirements When using the Vue.js framework t...
Usually, there are two options when we develop Li...
1 Background JDK1.8-u181 and Tomcat8.5.53 were in...