Zabbix 7.0 and PostgreSQL v16 both new installs on Rock 9
I understand that SQL scripts (for creating database schema and inserting the dataset) need to be run whether you have a DB local to Zabbix, or a remote DB. I have a new Postgres server and would like to use that. When I install the package it installs without error, however it doesn't seem to deliver the contents expected.
On the PSQL server
Next I would be looking to run something like
But clearly that path isn't going to work as there is nothing like
Am I looking in the right place?
These scripts have been installed OK on the Zabbix box when I used the command
but as I ran them all at once I don't know which, I would have assumed zabbix-sql-scripts? so I could just copy them over to the PSQL server but curious as to what I am doing wrong?
I understand that SQL scripts (for creating database schema and inserting the dataset) need to be run whether you have a DB local to Zabbix, or a remote DB. I have a new Postgres server and would like to use that. When I install the package it installs without error, however it doesn't seem to deliver the contents expected.
On the PSQL server
Code:
rpm -Uvh https://repo.zabbix.com/zabbix/7.0/rocky/9/x86_64/zabbix-release-7.0-5.el9.noarch.rpm
Code:
dnf install zabbix-sql-scripts
Code:
Installed: zabbix-sql-scripts-7.0.3-release1.el9.noarch Complete!
Code:
[postgres@postgres zabbix-sql-scripts]$ pwd /usr/share/doc/zabbix-sql-scripts [postgres@postgres zabbix-sql-scripts]$ ll total 1776 -rw-r--r--. 1 root root 98 Aug 15 04:31 AUTHORS -rw-r--r--. 1 root root 1769460 Aug 19 10:21 ChangeLog -rw-r--r--. 1 root root 34523 Aug 15 04:31 COPYING -rw-r--r--. 1 root root 53 Aug 15 04:31 NEWS -rw-r--r--. 1 root root 26 Aug 15 04:31 README
Code:
zcat /usr/share/doc/zabbix-server-pgsql*/create.sql.gz | sudo -u zabbixuser psql zabbixdb
Code:
/usr/share/zabbix-sql-scripts/postgresql/server.sql.gz
These scripts have been installed OK on the Zabbix box when I used the command
Code:
dnf install zabbix-server-pgsql zabbix-web-pgsql zabbix-apache-conf zabbix-sql-scripts zabbix-agent2 zabbix-web-service zabbix-selinux-policy
Comment