Created
August 6, 2015 21:33
-
-
Save cristianrasch/e8502ca2484f193c7c56 to your computer and use it in GitHub Desktop.
Monit check for your Torquebox process
This file contains hidden or 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 torquebox with pidfile /var/run/torquebox/torquebox.pid | |
start program = "/usr/sbin/service torquebox start" with timeout 60 seconds | |
stop program = "/usr/sbin/service torquebox stop" with timeout 30 seconds | |
if not exist for 3 cycles then restart | |
if failed | |
host example.com | |
port 443 | |
type tcpssl | |
protocol https | |
request "/your-path" | |
status = 200 | |
with timeout 15 seconds | |
then restart | |
if 3 restarts within 5 cycles then timeout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment