[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Checking for existing of a http path

From: David Montgomery
Subject: Checking for existing of a http path
Date: Tue, 31 Jul 2012 07:44:44 +0800


What is the proper way to achieve the below?

check process myServer
  if failed host port 80 protocol HTTP and request
'/targeting' with timeout 3 seconds then restart
  start program = "supervisorctl restart uwsgi_server:"
  stop program = "supervisorctl restart uwsgi_server:"

I get this error

/etc/monit/monitrc:258: Error: syntax error 'if'!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]