I need your assistance, experience with zabbix and knowledge:
I configured everything like the Avantistech website says. Everything works fine until I try to continue setting up the zabbix server in the web UI. It says "Unable to determine current Zabbix database version: the table "dbversion" was not found."
Can you help me with that? That would be great!
I’ve attached a screenshot of the error message.
2
Answers
It seems that the database exists and the password is correct, otherwise you should get different error messages.
Probably something went wrong on "Import initial schema and data":
You should retry the command and watch out for issues or error messages.
In my case it was problem that:
sudo zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u userzabbix -p zabbixdb
did not worked. It was wrong path to script.
I was missing tables in database.
You can check this by going to mysql.
This need show you list of tables in zabbix database. If they do not exist, upper command did not created it.
Exit from MySQL:
run command again, with proper path (https://www.zabbix.com/download?zabbix=6.2&os_distribution=ubuntu&os_version=22.04&components=server_frontend_agent&db=mysql&ws=nginx):