-
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.
Merge pull request #5 from TalkingQuickly/feature/2021-upgrade
Feature/2021 upgrade
- Loading branch information
Showing
11 changed files
with
21 additions
and
62 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 |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
maintainer "Ben Dixon" | ||
maintainer_email "[email protected]" | ||
description "Monit configs for server components" | ||
version "0.1.2" | ||
version "1.0.0" | ||
|
||
recipe "monit_configs-tlq::memcached", "Monit config for memcached" | ||
recipe "monit_configs-tlq::mongo", "Monit config for mongodb" | ||
recipe "monit_configs-tlq::mysql-server", "Monit config for mysql server" | ||
recipe "monit_configs-tlq::nginx", "Monit config for nginx" | ||
recipe "monit_configs-tlq::redis-server", "Monit config for redis server" | ||
recipe "monit_configs-tlq::memcached", "Monit config for Memcached" | ||
recipe "monit_configs-tlq::postgres", "Monit config for Postgres" | ||
recipe "monit_configs-tlq::nginx", "Monit config for NGINX" | ||
recipe "monit_configs-tlq::redis-server", "Monit config for Redis" | ||
recipe "monit_configs-tlq::system", "Monit config for system memory, disk and cpu usage" | ||
|
||
supports "ubuntu" |
This file was deleted.
Oops, something went wrong.
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,7 +1,6 @@ | ||
check process memcached | ||
with pidfile /var/run/memcached.pid | ||
check process memcached with pidfile /var/run/memcached/memcached.pid | ||
group memcache | ||
start program = "/etc/init.d/memcached start" | ||
stop program = "/etc/init.d/memcached stop" | ||
start program = "/usr/bin/systemctl start memcached" | ||
stop program = "/usr/bin/systemctl stop memcached" | ||
if failed host 127.0.0.1 port 11211 protocol memcache then restart | ||
if 3 restarts within 6 cycles then timeout |
This file was deleted.
Oops, something went wrong.
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,7 +1,7 @@ | ||
#Monitoring Nginx Service | ||
|
||
check process nginx with pidfile /var/run/nginx.pid | ||
start program = "/etc/init.d/nginx start" | ||
stop program = "/etc/init.d/nginx stop" | ||
start program = "/usr/bin/systemctl start nginx" | ||
stop program = "/usr/bin/systemctl stop nginx" | ||
if failed host 127.0.0.1 port 80 then restart | ||
if 15 restarts within 15 cycles then timeout |
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,6 +1,8 @@ | ||
#Monitoring Postgres Service | ||
|
||
check process postgresql with pidfile <%= node['monit_configs-tlq']['postgres']['pidfile'] %> | ||
start program = "/etc/init.d/postgresql start" | ||
stop program = "/etc/init.d/postgresql stop" | ||
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 |
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,7 +1,7 @@ | ||
#Monitoring redis | ||
check process redis with pidfile /var/run/redis/redis-server.pid | ||
group database | ||
start program = "/etc/init.d/redis-server start" | ||
stop program = "/etc/init.d/redis-server stop" | ||
start program = "/usr/bin/systemctl start redis-server" | ||
stop program = "/usr/bin/systemctl stop redis-server" | ||
if failed host 127.0.0.1 port 6379 then restart | ||
if 15 restarts within 15 cycles then timeout |
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