Answer the question
In order to leave comments, you need to log in
How to enable zabbix monitoring of postgres running with docker-compose?
I recently started learning zabbix. To immediately be "as it should", I decided to configure and install as part of the docker-compose assembly. The local zabbix server and the remote zabbix agent work fine, all data is collected and displayed.
I wanted to further connect the monitoring of the PostgreSQL database, located on the same host as the zabbix server.
Everything is running via docker-compose.
I followed the guide from here: https://habr.com/ru/post/234481/
that is, I took the files from the repository https://github.com/lesovsky/zabbix-extensions/
for the zabbix agent, placed them in the right folder - that's all works, UserParameter'y were added.
Stuck on step:
zabbix-get -s 127.0.0.1 -k pgsql.ping['-h 127.0.0.1 -p 5432 -U postgres -d mydb']
Answer the question
In order to leave comments, you need to log in
The question is how to make it so that psql contained in the db container is called from the zabbix-agent container?
I wanted to further connect the monitoring of the PostgreSQL database located on the same host as the zabbix server
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question