monit-general
[Top][All Lists]
Advanced

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

Re: Monitor multiple instances of a process


From: ChetanK
Subject: Re: Monitor multiple instances of a process
Date: Wed, 10 Nov 2010 11:22:57 -0800 (PST)

Thanks for the help. We are going to create symlinks with different names to
the one binary and launch each of the fake processes (created using symlinks
to the actual binary). We will configure monit to monitor these processes.
I think this should work.

Regards,
Chetan


Eric Pailleau wrote:
> 
> Le 10/11/2010 09:33, Þórhallur Hálfdánarson a écrit :
>> I myself have just recently started playing with monit, for a very
>> similar scenario.  My suggestion would that you replace "process foo"
>> with "process foo0" and foo1.  This parameter doesn't have to have the
>> same name as the program you are checking, but rather a unique
>> identifier of the monitoring instance.
>>
>> However, I believe you also need to pass foo0.pid or foo1.pid as an
>> argument to cccstop.sh and cccstate.sh, in order for the scripts to stop
>> the correct instance and write to the correct pidfile, respectively.
>>
> Hello,
> You can add also a 'group foo' to all foo[0-9] rules.
> So you can start/stop/restart the whole whith one command :
> 
> monit -g foo xxx
> 
> 
> regards.
> 
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Monitor-multiple-instances-of-a-process-tp30178165p30183662.html
Sent from the monit-general mailing list archive at Nabble.com.




reply via email to

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