Zabbix Server Upgrade

From UVOO Tech Wiki
Revision as of 18:08, 25 May 2021 by Busk (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Make your backup snap of the vm when shutdown or at least database shutdown.

Uses standard deb/ubuntu apt methods of update.
It's as simple as going to https://www.zabbix.com/download, selecting right parameters for our install

https://www.zabbix.com/download?zabbix=5.4&os_distribution=ubuntu&os_version=20.04_focal&db=postgresql&ws=nginx  # If using ubuntu 20.04+postgres+nginx

After your update release with run commands

dpkg --list | grep zabbix
wget https://repo.zabbix.com/zabbix/5.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.4-1+ubuntu20.04_all.deb
dpkg -i zabbix-release_5.4-1+ubuntu20.04_all.deb
dpkg --list | grep zabbix  # This shows new version of zabbix we will update to
apt update
apt upgrade  #  (Use defaults which is N for No on prompts to overwrite config to keep our existing config)
systemctl restart zabbix-server
It will take serveral minutes to do any database migrations and you will get an error mismatch on https://monitor.extendhealth.com until migrations are complete and then you will get normal login