§2024-05-21

    • Global view, System information
    • Zabbix server is running No

Zabbix-09.png

  1. Why Zabbix server is not running
alexlai@hc4Jammy:~$ tail /var/log/zabbix-server/zabbix_server.log 
 26553:20240521:144837.838 Web monitoring:            YES
 26553:20240521:144837.838 VMware monitoring:         YES
 26553:20240521:144837.838 SMTP authentication:       YES
 26553:20240521:144837.838 ODBC:                      YES
 26553:20240521:144837.838 SSH support:               YES
 26553:20240521:144837.838 IPv6 support:              YES
 26553:20240521:144837.838 TLS support:               YES
 26553:20240521:144837.838 ******************************
 26553:20240521:144837.838 using configuration file: /etc/zabbix/zabbix_server.conf
 26553:20240521:144838.006 The server does not match Zabbix database. Current database version (mandatory/optional): 06040000/06040026. Required mandatory version: 05000000.

The error message indicates that there is a version mismatch between your Zabbix server and the Zabbix database. Specifically, the current database version is 06040000/06040026, but the server expects the database to be at version 05000000.

  1. Fix Zabbix Version
alexlai@hc4nas02:~$ zabbix_server --version
zabbix_server (Zabbix) 4.0.17
Revision a528a0a4bc 28 January 2020, compilation time: Feb  4 2020 04:03:41
...

Given that you are using Zabbix 4.0.17, it appears the Zabbix server expects the database schema to match this version, but your database schema version is significantly newer (06040000/06040026). This suggests that the database has been upgraded for a newer version of Zabbix, likely Zabbix 6.4, which is not compatible with Zabbix 4.0.17.

lexlai@hc4Jammy:~$ zabbix_server --version
zabbix_server (Zabbix) 5.0.17
Revision 0a4ac3dabc 18 October 2021, compilation time: Nov 19 2021 00:15:32

alexlai@hc4Jammy:~$ sudo apt update && sudo apt install zabbix-release
....
zabbix-release is already the newest version (1:6.4-1+ubuntu22.04).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

alexlai@hc4Jammy:~$ psql -U zabbix -d zabbix -h localhost
Password for user zabbix: 
psql (14.11 (Ubuntu 14.11-0ubuntu0.22.04.1))
SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits: 256, compression: off)
Type "help" for help.

zabbix=> SELECT * FROM dbversion;
 dbversionid | mandatory | optional 
-------------+-----------+----------
           1 |   6040000 |  6040026
(1 row)

zabbix=> 
  1. Upgrade Zabbix Server 4.0 TO 6.0
$ sudo apt update

5. remove all

alexlai@hc4nas02:~/Downloads$ sudo apt remove --purge postgresql zabbix-server-pgsql zabbix-frontend-php zabbix-agent