§2024-05-21

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

Zabbix-09.png

  1. Why Zabbix server is not running
alexlai@hc4nas02:~$ tail /var/log/zabbix-
zabbix-agent/  zabbix-server/ 
alexlai@hc4nas02:~$ tail /var/log/zabbix-server/zabbix_server.log 
301865:20240521:102635.589 SMTP authentication:       YES
301865:20240521:102635.590 Jabber notifications:      YES
301865:20240521:102635.590 Ez Texting notifications:  YES
301865:20240521:102635.590 ODBC:                      YES
301865:20240521:102635.590 SSH2 support:              YES
301865:20240521:102635.590 IPv6 support:              YES
301865:20240521:102635.590 TLS support:               YES
301865:20240521:102635.590 ******************************
301865:20240521:102635.590 using configuration file: /etc/zabbix/zabbix_server.conf
301865:20240521:102635.648 The server does not match Zabbix database. Current database version (mandatory/optional): 06040000/06040026. Required mandatory version: 04000000.

To resolve the version mismatch between the Zabbix server and the database, you need to apply the database schema upgrades. Since the SQL upgrade scripts are not found in the expected directories, you can download them manually from the Zabbix repository.

  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.

  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