Upgrade Zabbix/Proxy 5.2.x to 5.4 on RHEL/CentOS

Today I’ve upgraded my monitoring system, Zabbix from 5.2.x to 5.4 version which was published on 14th of May, 2021. The official tweet is here. I earn my living by selling and supporting Microsoft products, but I can’t hide my admiration for open-source software. I always say “You cannot manage the things you cannot see“.

This process is very easy and I’ll share the steps with you in a simple way without overwhelming you with too much code.

How to upgrade Zabbix server from 5.2.x to 5.4

Let’s get start it logging into our Zabbix server via ssh software, then type the following codes to stop Zabbix server processes because we don’t want any data to be written to our database while we are upgrading our system.

systemctl stop zabbix-server

The following code helps us to add the new version of Zabbix to our repository of the OS.

rpm -Uvh https://repo.zabbix.com/zabbix/5.4/rhel/8/x86_64/zabbix-release-5.4-1.el8.noarch.rpm

The next two following codes have added to this article due to I had trouble on my current system that I didn’t see the new version after completing the all steps. I solve the problem by removing the cache of repositories that are enabled, then enabled the cache again.

yum clean all
yum makecache

Be careful with the next code because you may use PostgreSQL instead of MySQL. If you are using PostgreSQL, substitute mysql with pgsql in the command.

yum upgrade zabbix-server-mysql zabbix-web-mysql zabbix-agent -y
yum install zabbix-apache-conf -y

Everything seems done so far, let’s check out our Zabbix version now. If you see that you have upgraded your Zabbix to the 5.4 version of Zabbix, type the following code to start Zabbix.

zabbix_proxy --version
systemctl start zabbix-server

How to upgrade Zabbix proxy from 5.2.x to 5.4

We’ll follow the same steps except for two steps that we have to change the code from server to proxy. I assume that you upgraded your Zabbix server implementing the above steps and tried the see what’s was going on on your Zabbix server on the shell. If you read the log file using the tail -f /var/log/zabbix/zabbix_server.log you will see the given information code on the line because there is a difference between the server and proxy. They need to have the same version to be read and displayed the right data.

2303384:20210525:193018.357 proxy "PROXY_MON_SERVER_NAME" protocol version 5.2 differs from server version 5.4

Let’s start to upgrade our Zabbix Proxy server with the following codes.

systemctl stop zabbix-proxy
rpm -Uvh https://repo.zabbix.com/zabbix/5.4/rhel/8/x86_64/zabbix-release-5.4-1.el8.noarch.rpm
yum clean all
yum makecache
yum upgrade zabbix-proxy-mysql -y
yum install zabbix-apache-conf -y 
systemctl start zabbix-proxy
zabbix_proxy --version

Great, you have upgraded your Zabbix server or Zabbix Proxy reading this article. Thanks for your time reading my article about Zabbix and Zabbix proxy.

Regards,

Hasan Altin

Published by Hasan Altin

I don't see any difference between the one who doesn't share its knowledge or the one who doesn't share its bread.

Leave a Reply

Your email address will not be published.