CMK version: - 2.16
OS version: RHEL 8
Error message: ./mk_postgres.py psql: error: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.8462”?
**Output of “cmk --debug -vvn hostname”: ./mk_postgres.py psql: error: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.8462”?
Note : It is looking to use unix socket from default directory /var/run/postgresql. Due to some security reasons we are not using the default path for unix socket. We are using /tmp. If the plugin mk_postgres.py can use PG_HOST variable that is specified in the environment file, it will look into /tmp location. Since there is no parameter or variable $PG_HOST in plugin file, it is failing. Kindly suggest . We can’t use the default path at any cost. If possible please update the plugin to use PG_HOST for connection in psql commands.