Windows Monitoring Postgresql with python script

Hello,

I’m having a problem with the default script so mk_postgres.py with python 3.8 going to see the log file on the agent I see that it launches

 'python.exe "C: \ ProgramData \ checkmk \ agent \ plugins \ mk_postgres.py"' pid: [7836] SUCCEDED - generated [0] bytes of data in [0] blocks
[srv 2824] [Warn] Process 'C: \ ProgramData \ checkmk \ agent \ plugins \ mk_postgres.py' has no data

wanting to see the error I launch the same command from powershell which gives various errors

Traceback (most recent call last):
  File "mk_postgres.py", line 1020, in <module>
    main ()
  File "mk_postgres.py", line 1011, in main
    postgres = postgres_factory (dbuser, instance)
  File "mk_postgres.py", line 871, in postgres_factory
    return PostgresWin (db_user, pg_instance)
  File "mk_postgres.py", line 98, in __init__
    self.psql, self.bin_path = self.get_psql_and_bin_path ()
  File "mk_postgres.py", line 374, 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.

do you need to configure a .cfg file in the folder C: \ ProgramData \ checkmk \ agent \ config? is there an example?

Thank you.
Dario.

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.