Skip to content

Instantly share code, notes, and snippets.

@johnrengelman
Created January 8, 2015 18:54
Show Gist options
  • Save johnrengelman/eeb65c42ef10e3a7e77d to your computer and use it in GitHub Desktop.
Save johnrengelman/eeb65c42ef10e3a7e77d to your computer and use it in GitHub Desktop.
Monit Install
check process foo # the monit service name
with pidfile </path/to/pid>
start = "/etc/init.d/foo start"
stop = "/etc/init.d/foo stop"
set init
set daemon 2 # This is the # of seconds to poll the services
# Sets the HTTP support to bind to localhost only, needed for the CLI to talk to the daemon
set httpd port 2812
address localhost
allow localhost
include /etc/monit.d/*.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment