[Top][All Lists]

[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


Below is my config for monitoring a script.

check process pixelServer
   with pidfile "/var/run/"
   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...

description "pixel server"
author      "Test"
start on startup
stop on shutdown
    export HOME="/root"
    echo $$ > /var/run/
    exec spawn-fcgi -d /home/ubuntu/rtbopsConfig/rtbPixelServer/ -f
/home/ubuntu/rtbopsConfig/rtbPixelServer/ -a -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" >>
end script

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


reply via email to

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