How do I use the mk_postgres plugin when Postgres is running within a docker container?

I have several Postgres databases I would like to monitor using the provided plugin.
But they run within docker containers.
If I install the plugin in the docker host (machine) it does not see the database within the container.

Shall I then install the plugin within the container too?

BTW, I have the same exact question with a MySQL database, also installed within a docker container.

Please help. Thx.

If nothing has changed since my last time i answered some question like this.

You need to install a CMK agent and the mk_postgres inside the container.
In case you only want to monitor the accessibility and some own queries, then you can also use the rule " Check SQL Database".

1 Like

Thx @andreas-doehler for the response.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.