monit-general
[Top][All Lists]
Advanced

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

Re: "execution failed" when trying to monitor HTTP request


From: Lukasz Piwowarek
Subject: Re: "execution failed" when trying to monitor HTTP request
Date: Sat, 18 Feb 2012 18:42:41 -0700
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1

Hi,

You need to use absolute paths in monit config - ie /sbin/start I think.

Cheers

Lukasz

On 12-02-18 6:34 PM, David Montgomery wrote:
Hi,

I have a python script and  used upstart to create a daemon in ubuntu.
  sudo start pixelServer works and the pid file is in /var/run.  I am
using nginx and the server listens on port 80.  Also domain.com/pixel
works.

In monit when I monitor the process I get "execution failed".  Nginx
is monitored.  So...how do I resolve?

Thanks



check process pixelServer
    with pidfile "/var/run/pixelServer.pid"
    start program = "sudo start pixelServer"
    #stop program = "sudo stop pixelServer"
    if failed port 80 protocol HTTP
     request /pixel/
     with timeout 10 seconds
     then start

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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