Monit use of
pgsql protocol in a Unix socket test which comes straight out of the
monit FAQ check results in Postgres errors logged every cycle:
FATAL: role "root" does not exist
The result is significant pollution of Postgres logs.
This does not occur in my environments in port tests. In my environments, all TCP/IP users are authenticated with passwords (
md5 Postgres authentication), but this is not a default Postgres setup.
What is missing in
pgsql protocol is an ability to provide database and user parameters, which Postgres usually initializes using
PGUSER environment variables.