Hi,
I setup Zabbix with this docker-compose.yml file: https://pastebin.com/PxHSRzTx
After I started it with: docker compose up, I can login to the web ui and it works great.
But now I want to connect to the postgresql database and list the tables in there, but when I do that they are all empty. If I first list running containers, there is:
postgres:16 with name zabbix-postgres-1 running on port 5432.
Then I go into the contianer with: docker exec -it <id> bash
Then I run these commands:
psql -U zabbix
\c zabbix
\dt
I see a lot of tables which looks fine, for example hosts table. But when doing: select * from hosts, I get no results. I also don't get it from any other table, why not? What am I doing wrong? In the GUI, there is one host which is the agent running on my own machine where I spin up the docker. So why can't I see the data in the database?
I appreciate all help, thank you!
I setup Zabbix with this docker-compose.yml file: https://pastebin.com/PxHSRzTx
After I started it with: docker compose up, I can login to the web ui and it works great.
But now I want to connect to the postgresql database and list the tables in there, but when I do that they are all empty. If I first list running containers, there is:
postgres:16 with name zabbix-postgres-1 running on port 5432.
Then I go into the contianer with: docker exec -it <id> bash
Then I run these commands:
psql -U zabbix
\c zabbix
\dt
I see a lot of tables which looks fine, for example hosts table. But when doing: select * from hosts, I get no results. I also don't get it from any other table, why not? What am I doing wrong? In the GUI, there is one host which is the agent running on my own machine where I spin up the docker. So why can't I see the data in the database?
I appreciate all help, thank you!
Comment