File tree Expand file tree Collapse file tree 6 files changed +50
-0
lines changed Expand file tree Collapse file tree 6 files changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ # {{ template_destpath }}
2
+ # {{ ansible_managed }}
3
+
4
+ check process apache with pidfile /var/run/httpd/httpd.pid
5
+ group root
6
+ start program = "/bin/systemctl start httpd"
7
+ stop program = "/bin/systemctl stop httpd"
8
+ if failed port 8080 for 2 cycles then restart
9
+ if failed port 8443 for 2 cycles then restart
Original file line number Diff line number Diff line change
1
+ # {{ template_destpath }}
2
+ # {{ ansible_managed }}
3
+
4
+ check process mariadb with pidfile /var/run/mariadb/mariadb.pid
5
+ group mysql
6
+ start program = "/bin/systemctl start mariadb"
7
+ stop program = "/bin/systemctl stop mariadb"
8
+ if failed port 3306 protocol mysql timeout 15 seconds then restart
Original file line number Diff line number Diff line change
1
+ set daemon 30 # check services at 30 seconds intervals
2
+ set log /var/log/monit.log
3
+ set eventqueue
4
+ basedir /var/monit # set the base directory where events will be stored
5
+ slots 100 # optionally limit the queue size
6
+ set httpd port 11000 and
7
+ use address localhost # only accept connection from localhost (drop if you use M/Monit)
8
+ allow localhost # allow localhost to connect to the server
Original file line number Diff line number Diff line change
1
+ # {{ template_destpath }}
2
+ # {{ ansible_managed }}
3
+
4
+ check process nginx with pidfile /var/run/nginx.pid
5
+ group nginx
6
+ start program = "/bin/systemctl start nginx"
7
+ stop program = "/bin/systemctl start nginx"
8
+ if failed port 80 for 2 cycles then restart
9
+ if failed port 443 for 2 cycles then restart
Original file line number Diff line number Diff line change
1
+ # {{ template_destpath }}
2
+ # {{ ansible_managed }}
3
+
4
+ check process php-fpm with pidfile /run/php-fpm/php-fpm.pid
5
+ group root
6
+ start program = "/bin/systemctl start php-fpm"
7
+ stop program = "/bin/systemctl stop php-fpm"
8
+ if failed unixsocket /var/run/php-fpm/wordpress.sock for 2 cycles then restart
Original file line number Diff line number Diff line change
1
+ # {{ template_destpath }}
2
+ # {{ ansible_managed }}
3
+
4
+ check process redis with pidfile /var/run/redis/redis.pid
5
+ group redis
6
+ start program = "/bin/systemctl start redis"
7
+ stop program = "/bin/systemctl stop redis"
8
+ if failed port 6379 protocol redis then restart
You can’t perform that action at this time.
0 commit comments