From 9d67e37166d560fd3effe017041b0cf2c0872efd Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Mon, 13 Dec 2021 20:21:20 -0800 Subject: [PATCH] puppet: Nagios connects as itself, in check_postgresql_replication_lag. --- .../zulip_postgresql/check_postgresql_replication_lag | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/puppet/zulip/files/nagios_plugins/zulip_postgresql/check_postgresql_replication_lag b/puppet/zulip/files/nagios_plugins/zulip_postgresql/check_postgresql_replication_lag index 9c3c4dcbfc..9517b64dc2 100755 --- a/puppet/zulip/files/nagios_plugins/zulip_postgresql/check_postgresql_replication_lag +++ b/puppet/zulip/files/nagios_plugins/zulip_postgresql/check_postgresql_replication_lag @@ -39,8 +39,7 @@ def run_sql_query(query: str) -> List[List[str]]: "ON_ERROR_STOP=1", "-d", get_config(config_file, "postgresql", "database_name", "zulip"), - "-u", - get_config(config_file, "postgresql", "database_user", "zulip"), + # No -U; nagios connects as itself "-c", f"SELECT {query}", ]