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: Eric Pailleau
Subject: Re: Monitor multiple instances of a process
Date: Wed, 10 Nov 2010 09:38:53 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100624 Mandriva/3.0.5-0.1mdv2009.1 (2009.1) Thunderbird/3.0.5

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.



reply via email to

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