[Top][All Lists]

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

Re: Different daemon times for different processes

From: rory
Subject: Re: Different daemon times for different processes
Date: Tue, 31 Aug 2010 12:46:20 -0700
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv: Gecko/20100802 Thunderbird/3.1.2

 Ah, yeah. I thought there was something like that, just couldn't find it.


Might see some code changes from me, should the need arise. Using monit in another product...

On 8/31/10 12:35 PM, Jan-Henrik Haukeland wrote:
Hi Rory, long time :)

The every statement comes to mind. From the manual;

  every           Validate this entry only at every n poll cycle.
                  Useful in daemon mode when the cycle is short
                  and a service takes some time to start.

  check process dynamo with pidfile /etc/
        start program = "/etc/init.d/dynamo start"
        stop program  = "/etc/init.d/dynamo stop"
        if failed port 8840 then alert
        every 2 cycles

On 31. aug. 2010, at 20.39, rory wrote:

Before I go adding this functionality, I want to double check that it isn't 
there and solicit some input.

Generally, I can set the cycle time of monit with

set daemon 20

However, as it turns out, my system has differing needs here. I'm thinking that 
something like

check service foo with pidfile
set cycle check 3

(This would cause it to only be checked every third cycle, so in the above 
example, it would be checked once per minute)

Any comments?

To unsubscribe:

To unsubscribe:

reply via email to

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