Hello Everyone,
I have a database with one schema, and it works fine with full monitoring data. In this case, the database has the default user postgres, and all the tables are in the public schema.
Now, on another server, I want to monitor a PostgreSQL database that contains many (around 50) schemas and a few hundred tables. However, this database does not use the default postgres user, and there are no tables in the public schema.
Here’s the output from this server:
lua
Skopiuj kod
# python3 /usr/lib/check_mk_agent/plugins/mk_postgres.py
su: user checkmk does not exist or the user entry does not contain all the required fields
su: user checkmk does not exist or the user entry does not contain all the required fields
su: user checkmk does not exist or the user entry does not contain all the required fields
su: user checkmk does not exist or the user entry does not contain all the required fields
<<<postgres_instances>>>
[[[db1]]]
2829046 postgres: 16/main: pgsql db1(1545) idle
2829050 postgres: 16/main: pgsql db1(1547) idle
2829053 postgres: 16/main: pgsql db1(1548) idle
<<<postgres_stat_database:sep(59)>>>
[[[db1]]]
<<<postgres_version:sep(1)>>>
[[[db1]]]
<<<postgres_conn_time>>>
[[[db1]]]
0.004
Do you have any suggestions on how to configure this?