puppet: Nagios connects as itself, in check_postgresql_replication_lag.

This commit is contained in:
Alex Vandiver 2021-12-13 20:21:20 -08:00 committed by Tim Abbott
parent a751d3a6ff
commit 9d67e37166

View File

@ -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}",
]