[Top][All Lists]

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

Re: monit cant see process

From: Christian Hopp
Subject: Re: monit cant see process
Date: Fri, 6 Dec 2002 14:51:19 +0100 (CET)

On Fri, 6 Dec 2002 address@hidden wrote:

> i have a prob with monit and several process without pidfile.

That is usually no problem.  I also use "pgrep -f ..." for several
processes which run well with monit 3.0 and in a development
environment with monit cvs.

>        exec 2>&1 $ORACLE_HOME/ifs1.1/bin/ifsstart &
Why do you combine exec with an & termination.  Why don't you simply

>        sleep 2;
>        echo `pgrep -f 'ifs1.1/jre/bin/sparc/native_threads/jre -mx16M'`\
>        > $ORACLE_HOME/ifs1.1/log/;

That is okay, but if you want to be safe use also -P 1 with pgrep.  It
makes sure that it is a child of init and a detached server.  You
should only have one pid in the pidfile.


> cat $ORACLE_HOME/ifs1.1/log/ gives me the same PID as
> pgrep -f "jre -mx16M"

How many entries are there?


> I thought about to make a "timeout (1, 1)" in .monitrc but this
> is an "ugly workaround".

Be careful with such a timeout statement.  That means if monit
restarts your server once in one cylce that it shouldn't start it
again.  Thus, monitoring is disabled!

> Anyone an idea to solve this problem?

Which euid does your monit have?  Does your monit have the permission
to read the pid file (e.g. ACLs)??



Christian Hopp                                email: address@hidden
Institut für Elektrische Informationstechnik             fon: +49-5323-72-2113
TU Clausthal, Leibnizstr. 28, 38678 Clausthal-Zellerf.   fax: +49-5323-72-3197

reply via email to

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