Created
July 13, 2012 01:11
-
-
Save yaegashi/3102130 to your computer and use it in GitHub Desktop.
Minimal monit config example
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
# /etc/monit/monitrc | |
set daemon 60 | |
set logfile /var/log/monit.log | |
set idfile /var/lib/monit/id | |
set statefile /var/lib/monit/state | |
set eventqueue basedir /var/lib/monit/events slots 100 | |
set mailserver mail.example.com | |
set alert monit@example.com | |
set httpd port 2812 and use address localhost allow localhost | |
include /etc/monit/conf.d/* |
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
# /etc/monit/conf.d/service_name | |
check process service_name pidfile /path/to/service.pid | |
start "/path/to/start-stop-script start" uid your_name gid your_group | |
stop "/path/to/start-stop-script stop" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment