Skip to content

Instantly share code, notes, and snippets.

@drawcard
Created February 26, 2016 05:49
Show Gist options
  • Save drawcard/393dbb9bac7436d12bc0 to your computer and use it in GitHub Desktop.
Save drawcard/393dbb9bac7436d12bc0 to your computer and use it in GitHub Desktop.
Monit custom config settings
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