mirror of
https://github.com/zulip/zulip.git
synced 2025-11-20 14:38:46 +00:00
puppet: Use peer authentication for Postgres nagios checks
(imported from commit d8f02d5320d6f8b97fd82cd3f0ca65f6e5c42b03)
This commit is contained in:
@@ -16,7 +16,7 @@ def report(state, msg):
|
||||
print "%s: %s" % (state, msg)
|
||||
exit(states[state])
|
||||
|
||||
if subprocess.check_output(['psql', '-h', 'localhost', 'zulip', 'zulip', '-t', '-c',
|
||||
if subprocess.check_output(['psql', '-t', '-c',
|
||||
'SELECT pg_is_in_recovery()']).strip() != 'f':
|
||||
report('OK', 'this is not the primary')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user