Created
February 26, 2016 05:49
-
-
Save drawcard/393dbb9bac7436d12bc0 to your computer and use it in GitHub Desktop.
Monit custom config settings
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
check process apache with pidfile /run/apache2.pid | |
start program = "/etc/init.d/apache2 start" with timeout 60 seconds | |
stop program = "/etc/init.d/apache2 stop" | |
check process mysqld with pidfile /var/run/mysqld/mysqld.pid | |
start program = "/etc/init.d/mysql start" | |
stop program = "/etc/init.d/mysql stop" | |
set httpd port 2812 | |
use address localhost # only accept connection from localhost | |
allow localhost # allow localhost to connect to the server and | |
allow admin:monit # require user 'admin' with password 'monit' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment