monit-general
[Top][All Lists]
Advanced

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

Parameter Status, the value is "Does not exist"


From: David Montgomery
Subject: Parameter Status, the value is "Does not exist"
Date: Sun, 19 Feb 2012 18:11:15 +0800

Hi,

Below is my config for monitoring a script.

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

In the UI it says that the process is monitored but the Parameter
Status, the value is "Does not exist".
How does monit check the status?

I created the daemon using upstart be the below...

#!upstart
description "pixel server"
author      "Test"
start on startup
stop on shutdown
script
    export HOME="/root"
    echo $$ > /var/run/pixelServer.pid
    exec spawn-fcgi -d /home/ubuntu/rtbopsConfig/rtbPixelServer/ -f
/home/ubuntu/rtbopsConfig/rtbPixelServer/index.py -a 127.0.0.1 -p 9001
>> /var/log/pixelServer.sys.log 2>&1
end script

pre-start script
    # Date format same as (new Date()).toISOString() for consistency
    echo "[`date -u +%Y-%m-%dT%T.%3NZ`] (sys) Starting" >>
/var/log/pixelServer.sys.log
end script

pre-stop script
    kill `sudo lsof -t -i:9001`
    rm /var/run/pixelServer.pid
    echo "[`date -u +%Y-%m-%dT%T.%3NZ`] (sys) Stopping" >>
/var/log/pixelServer.sys.log
end script



Thanks



reply via email to

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