-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds: simpler approach to Postgres pids
- Loading branch information
1 parent
2d925f3
commit eb97837
Showing
2 changed files
with
3 additions
and
6 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#Monitoring Postgres Service | ||
|
||
check process postgresql with pidfile <%= node['monit_configs-tlq']['postgres']['pidfile'] %> | ||
start program = "/usr/bin/systemctl start postgresql" | ||
stop program = "/usr/bin/systemctl stop postgresql" | ||
check process postgresql with pidfile /var/run/postgresql/<%= node['postgresql']['version'] %>-main.pid | ||
start program = "/usr/bin/systemctl start postgresql@<%= node['postgresql']['version'] %>-main" | ||
stop program = "/usr/bin/systemctl stop postgresql@<%= node['postgresql']['version'] %>-main" | ||
if 15 restarts within 15 cycles then timeout | ||
if failed host localhost port 5432 type TCP then restart | ||
if failed host localhost port 5432 type TCP then alert |