I was working on Zabbix Docker and wanted to test the migration from native Zabbix 5 to dockerized Zabbix 6 so I needed to install nethserver-zabbix but the installation wasn’t working anymore because of the new epel zabbix60-* packages that conflict with the zabbix-agent2 from the zabbix repo.
Transaction check error:
file /var/log/zabbix conflicts between attempted installs of zabbix6.0-agent-6.0.16-1.el7.x86_64 and zabbix-agent2-5.0.33-1.el7.x86_64
Therefore I changed the requires to stick to version 5 so if you have issues when updating your system or installing nethserver-zabbix, please test/install following fixed nethserver-zabbix(-agent) modules:
yum install https://mrmarkuz.dynu.net/mirror/devtest/nethserver-zabbix-0.0.1-11.ns7.noarch.rpm https://mrmarkuz.dynu.net/mirror/devtest/nethserver-zabbix-agent-0.0.1-3.ns7.noarch.rpm --enablerepo=zabbix-frontend
OK, Zabbix itself doesn’t provide packages for CentOS 7 but epel does so we could have a native Zabbix 6 update, unfortunately without zabbix-agent2 as epel doesn’t provide it yet.
Zabbix 6 requires postgresql 13 so we need a DB migration from nethserver-postgresql.
I hope to finish the DB migration soon so I can provide a module for testing…
EDIT:
Please test the Zabbix 6 LTS module!
Check out what’s new in Zabbix 6 LTS…
Please don’t test in production or at least backup the zabbix DB in case of an upgrade (or have some other backup). Following command saves the DB to a file.
/etc/e-smith/events/actions/nethserver-zabbix-backup
Check if the backup sql file /var/lib/nethserver/zabbix/backup/zabbix.sql
is there and move it to a safe place like your home dir because a system backup will overwrite it.
Zabbix 6 needs nethserver-postgresql13, fortunately it’s provided by @stephdl so we need his repo:
yum -y install http://mirror.de-labrusse.fr/NethServer/7/x86_64/nethserver-stephdl-1.1.9-1.ns7.sdl.noarch.rpm
For me it was not possible to update the zabbix packages to the epel ones directly, the only way I found was removing the zabbix packages completely.
Of course this step is only needed when you’re updating from Zabbix 5.
yum -y remove "zabbix-*"
Install the new packages:
yum -y install https://mrmarkuz.dynu.net/mirror/devtest/nethserver-zabbix-0.0.2-1.ns7.noarch.rpm https://mrmarkuz.dynu.net/mirror/devtest/nethserver-zabbix-agent-0.0.2-1.ns7.noarch.rpm
Zabbix 6 should be up and running at https://<NETH>/zabbix
, in a fresh install use username Admin
and password zabbix
to login.
-
The update migrates the DB from postgresql 9 to postgresql 13, this step may take some time, depending on your zabbix DB size.
-
The update should also work when the old zabbix packages aren’t removed. In this case you still use Zabbix 5 (with postgresql13). To migrate to Zabbix 6 just remove the
Zabbix-*
packages and install the new nethserver-zabbix packages as described above. -
If you used zabbix-agent2 you need to switch to zabbix-agent because agent2 is not supported yet, see zabbix [NethServer Wiki] for instructions.