Upgrade Zabbix 3.4 to 4.0

From Zabbix-ES
Jump to navigation Jump to search

Stop Zabbix processes

 # systemctl stop zabbix-server.service
 # systemctl stop zabbix-agent.service
 # systemctl stop zabbix-java.service  <- Solo si utilizamos Java Gateway

PROXY

 # systemctl stop zabbix-proxy
 # systemctl status zabbix-server.service  <- Solo si utilizamos Zabbix Proxy

Back up the existing Zabbix database

Back up configuration files, PHP files and Zabbix binaries

 Configuration files:
 # mkdir /opt/zabbix-backup/
 # cp /etc/zabbix/zabbix_server.conf /opt/zabbix-backup/
 # cp /etc/httpd/conf.d/zabbix.conf  /opt/zabbix-backup/
 PHP files and Zabbix binaries:
 # cp -R /usr/share/zabbix/ /opt/zabbix-backup/
 # cp -R /usr/share/doc/zabbix-* /opt/zabbix-backup/

Update repository configuration package

 To proceed with the upgrade your current repository package has to be updated.
 # rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm

Upgrade Zabbix components

 # yum clean all
 # yum upgrade zabbix-server-pgsql zabbix-web-pgsql zabbix-agent

PROXY

 # yum upgrade zabbix-proxy zabbix-agent
 # mv /database/sqlite3/zabbix.db /database/sqlite3/zabbix.db.X.X.XX

Review component configuration parameters

Start Zabbix processes

 # systemctl start zabbix-server
 # systemctl start zabbix-agent
 # systemctl start zabbix-java.service <- Solo si utilizamos Java Gateway

PROXY

 # systemctl start zabbix-proxy
 # zabbix_proxy -R config_cache_reload
Nota: Limpiar cookies y cache del web browser