Monitoring PostgreSQL on Windows

Hey,

I tried to monitor an postgresql server with CMK. I’ve installed python 3.8 (Monitor Postgres DBs on Windows and Linux) and created a rule for my agentbakery.
I created an cmk.env file on the server with the custom tcp-port inside.

But the PostgreSQL path is not default I guess, so i receive those errors if I want to start the cmk python-script:

C:\ProgramData\checkmk\agent\plugins>mk_postgres.py
Traceback (most recent call last):
File “C:\ProgramData\checkmk\agent\plugins\mk_postgres.py”, line 1011, in
main()
File “C:\ProgramData\checkmk\agent\plugins\mk_postgres.py”, line 1002, in main
postgres = postgres_factory(dbuser, instance)
File “C:\ProgramData\checkmk\agent\plugins\mk_postgres.py”, line 862, in postgres_factory
return PostgresWin(db_user, pg_instance)
File “C:\ProgramData\checkmk\agent\plugins\mk_postgres.py”, line 97, in init
self.psql, self.bin_path = self.get_psql_and_bin_path()
File “C:\ProgramData\checkmk\agent\plugins\mk_postgres.py”, line 373, in get_psql_and_bin_path
raise IOError(“Could not determine psql bin and its path.”)
OSError: Could not determine psql bin and its path.

C:\ProgramData\checkmk\agent\plugins>

Is it posible to configure the path without editing the whole “mk_postgres.py” ?

Thanks :slight_smile:

Josef

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.