-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
7.0.2, 7.0.3
-
None
-
One test with 3 VMs:
- Ubuntu 24.04 with Zabbix 7.0.2 (Backend) or Zabbix 7.0.2 (Backend) installed.
- Ubuntu 24.04 with NGINX (Frontend) installed.
- Ubuntu 24.04 with PostgreSQL 16.4 + TimescaleDB 2.15.2 installed
Another test with 3 containers:
- zabbix/zabbix-server-pgsql:ubuntu-latest
- zabbix/zabbix-web-nginx-pgsql:ubuntu-latest
- timescale/timescaledb:latest-pg16One test with 3 VMs: - Ubuntu 24.04 with Zabbix 7.0.2 (Backend) or Zabbix 7.0.2 (Backend) installed. - Ubuntu 24.04 with NGINX (Frontend) installed. - Ubuntu 24.04 with PostgreSQL 16.4 + TimescaleDB 2.15.2 installed Another test with 3 containers: - zabbix/zabbix-server-pgsql:ubuntu-latest - zabbix/zabbix-web-nginx-pgsql:ubuntu-latest - timescale/timescaledb:latest-pg16
Good evening,
I am experiencing difficulties while setting up a new Zabbix infrastructure as outlined in the environment section. I have followed the documentation provided:
I applied the same procedure to two new Zabbix infrastructures (VMs or containers). For each test, I conducted two sub-tests:
- Using the public schema (default)
- Using the Zabbix schema (custom as per the documentation)
Steps to Reproduce:
- Created a usr_owner and the database with that owner as described in the documentation.
- Configured a secure schema (only for the sub-test with zabbix schema); Please note the typo with the double quotes around “zabbix”. The correct command should be: ALTER ROLE ALL IN DATABASE zabbix SET search_path = "zabbix"; instead of ALTER ROLE ALL IN DATABASE zabbix SET search_path = "zabbix";
- Set up the database using schema.sql, images.sql, and data.sql.
- Create a role and then a user with that role assigned for Zabbix Server communication with the database.
- Enable TimescaleDB using the command provided in the documentation:
- One sub-test without the “WITH SCHEMA zabbix” substring when using the public schema.
- The other sub-test including it since I used the "zabbix" schema.
- Use the script /usr/share/zabbix-sql-scripts/postgresql/timescaledb/schema.sql to create hypertables and compression.
- Start the Zabbix Server service (Backend).
- Check for errors in the logs in zabbix_server.log
Result: Please see the log file screenshot “zabbix-server-pgsql-public-schema.html”.
Expected: No errors in the logs.
Comments:
It appears that the function zbx_ts_unix_now cannot be executed by a user belonging to the zbx_srv role as documented. More importantly, there seems to be an issue preventing that user from having permissions on the Zabbix schema, even though they actually do have them.
Additionally, after reviewing the screenshot “zabbix-roles.jpg”, I suspect that the “zbx_srv” section might be incorrect. Without the CREATE permission on the schema (whether public or Zabbix), errors such as the following appear (please refer to the screenshot “zbx_ts_unix_now() error.jpg”):
- PGRES_FATAL_ERROR: ERROR: permission denied for schema public (or zabbix)
- [create or replace function zbx_ts_unix_now() returns integer language sql stable as select extract(epoch from now())::integer]
- 826:20240905:130548.305 [Z3005] query failed: [0] PGRES_FATAL_ERROR: ERROR: function “zbx_ts_unix_now” does not exist
I am also encountering drop_chunks errors as shown in the “drop_chunks error.jpg” screenshot, along with messages like “must be owner of hypertable history”.
I am unsure how to resolve these issues, especially since this is a fresh and clean installation. Any assistance would be greatly appreciated
Thank you very much.
Best regards.