puppet: Use peer authentication for Postgres nagios checks

(imported from commit d8f02d5320d6f8b97fd82cd3f0ca65f6e5c42b03)
This commit is contained in:
Zev Benjamin
2013-11-23 10:01:15 -05:00
parent 3454680e4b
commit dacf97db48
2 changed files with 2 additions and 2 deletions

View File

@@ -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')