Hi all,
I'm a first time Zabbix user, and I wanted to get our system set up with Dockerized Zabbix (4.4.4). The system is booted and running fine. However, getting the agents to monitor applications has been a pain. I'm currently trying to monitor a PostgreSQL 9.6 installation with a containerized agent (centos-4.4.4) using the default template (https://www.zabbix.com/integrations/postgresql). Here's what I've done so far:
1. Created the agent and established connection with the server
2. Confirmed that the agent works (it can monitor other stuff fine)
3. Put the container on the host network (docker run --net="host") so that it works with 127.0.0.1 and passes pg_hba
4. Installed psql within the container using a Dockerfile and yum since the agent complained about not finding it
5. Mounted /var/run/postgresql per this StackOverflow post (https://stackoverflow.com/questions/...cker-container) as I was getting the same error.
Most of the items seem to be working, but the ping item is giving a 0 value (invoking the "PostgreSQL: Service is down" trigger). I've changed the macros so that the arguments to the item are correct, and I know that it can establish a connection to PostgreSQL because database names are showing up in Zabbix. Why is this one specific value not working?
I'm a first time Zabbix user, and I wanted to get our system set up with Dockerized Zabbix (4.4.4). The system is booted and running fine. However, getting the agents to monitor applications has been a pain. I'm currently trying to monitor a PostgreSQL 9.6 installation with a containerized agent (centos-4.4.4) using the default template (https://www.zabbix.com/integrations/postgresql). Here's what I've done so far:
1. Created the agent and established connection with the server
2. Confirmed that the agent works (it can monitor other stuff fine)
3. Put the container on the host network (docker run --net="host") so that it works with 127.0.0.1 and passes pg_hba
4. Installed psql within the container using a Dockerfile and yum since the agent complained about not finding it
5. Mounted /var/run/postgresql per this StackOverflow post (https://stackoverflow.com/questions/...cker-container) as I was getting the same error.
Most of the items seem to be working, but the ping item is giving a 0 value (invoking the "PostgreSQL: Service is down" trigger). I've changed the macros so that the arguments to the item are correct, and I know that it can establish a connection to PostgreSQL because database names are showing up in Zabbix. Why is this one specific value not working?
Comment