mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
puppet: Nagios connects as itself, in check_postgresql_replication_lag.
This commit is contained in:
parent
a751d3a6ff
commit
9d67e37166
@ -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}",
|
||||
]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user