monit-general
[Top][All Lists]
Advanced

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

Re: monit-general Digest, Vol 42, Issue 7


From: Martin Pala
Subject: Re: monit-general Digest, Vol 42, Issue 7
Date: Sun, 16 Jul 2006 23:18:46 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060620 Debian/1.7.13-0.2

Since your configuration allows automatic restart of apache, i think that when you performed the manual check of the apache, it was restarted by monit already => functional again and (pidfile was valid, etc.).

You can try to check monit and apache logs and also run monit in debug mode using the -v option.


Martin



Peter M. Abraham wrote:
Greetings Jan-Henrik:

check process apache
    with pidfile "/hsphere/local/var/httpd/logs/httpd.pid"
    start program = "/hsphere/shared/scripts/apache-restart force"
    stop program = "/etc/rc.d/init.d/httpd stop"
    if 4 restarts within 7 cycles then timeout
    if children > 255 for 5 cycles then alert
    if cpu usage > 95% for 5 cycles then alert
    if failed port 80 protocol http then restart
    if loadavg (1min) > 5 then restart

RE: On a regular basis, though the frequency varies, we will get an email alert from monit stating the following:

        'apache' process is not running

Yet, when we log onto the server, Apache is running, the pid file present where the pid file is supposed to be, and the PID in the pid file is what's running in the process tree.

What can be done so that Monit doesn't lose the Apache connection if the pid file is present, the PID within the pid file correct, and live in the process tree?



At 12:05 PM 7/15/2006, address@hidden wrote:

Message: 2
Date: Fri, 14 Jul 2006 23:00:16 +0200
From: Jan-Henrik Haukeland <address@hidden>
Subject: Re: Monit reliability in monitoring Apache
To: This is the general mailing list for monit
        <address@hidden>
Message-ID: <address@hidden>
Content-Type: text/plain; charset="us-ascii"


On 14. jul. 2006, at 19.53, Peter M. Abraham wrote:

> What can be done so that Monit doesn't lose the Apache connection
> if the pid file is present, the PID within the pid file correct,
> and live in the process tree?

Please post the part from your monitrc used for monitoring apache.

--
Jan-Henrik Haukeland






--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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