天天看點

zabbix 從5.0更新到5.4

stop zabbix server to make sure that no new data is inserted into database.

if upgrading the proxy, stop proxy too.

it is no longer possible to start the upgraded server and have older, yet unupgraded proxies report data to a newer server. this approach, which was never recommended nor supported by zabbix, now is officially disabled when upgrading to 5.0 (or later) from any version before 4.4, as the server will ignore data from unupgraded proxies.

this is a very important step. make sure that you have a backup of your database. it will help if the upgrade procedure fails (lack of disk space, power off, any unexpected problem).

make a backup copy of zabbix binaries, configuration files and the php file directory.

configuration files:

php files and zabbix binaries:

backup mysql 

  

to proceed with the upgrade your current repository package has to be updated.

to upgrade zabbix components you may run something like:

if using postgresql, substitute ​<code>​mysql​</code>​ with ​<code>​pgsql​</code>​ in the command. if upgrading the proxy, substitute ​<code>​server​</code>​ with ​<code>​proxy​</code>​ in the command. if upgrading the agent 2, substitute ​<code>​zabbix-agent​</code>​ with ​<code>​zabbix-agent2​</code>​ in the command.

to upgrade the web frontend with apache on rhel 8 correctly, also run:

and make the necessary ​​changes​​ to this file.

to upgrade the web frontend on rhel 7 follow ​​distribution-specific instructions​​ (extra steps are required to install php 7.2 or newer).

see the upgrade notes for details on ​​mandatory changes​​.

start the updated zabbix components.

zabbix3.2版本更新到zabbix3.4版本後打開頁面報錯,報錯内容如下

問題一

database error

the frontend does not match zabbix database. current database version (mandatory/optional): 5010000/5010000. required mandatory version: 5040000. contact your system administrator.

​​

zabbix 從5.0更新到5.4

(圖檔來自網絡)

解決辦法:

進入資料庫

重新打開web即可解決

 問題二

zabbix-server 無法啟動,檢視日志

tail -f /var/log/zabbix/zabbix_server.log

fix:

login mysql

對log中提示的所有表都drop掉,直到提示upgrade 完成,這樣在浏覽器上就可以正常打開和登陸zabbix

after the upgrade you may need to clear web browser cookies and web browser cache for the zabbix web interface to work properly.