monit-general
[Top][All Lists]
Advanced

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

Re: Monit reliability in monitoring Apache


From: Peter M. Abraham
Subject: Re: Monit reliability in monitoring Apache
Date: Mon, 17 Jul 2006 12:22:03 -0400

Greetings :

As shared in the original post, monit reports the failure. This is not a manual check, but that when monit states there is a failure, everything on the server level is fine including the PID and process tree.

Thank you.

At 12:06 PM 7/17/2006, you wrote:
Message: 1
Date: Sun, 16 Jul 2006 23:18:46 +0200
From: Martin Pala <address@hidden>
Subject: Re: monit-general Digest, Vol 42, Issue 7
To: This is the general mailing list for monit
        <address@hidden>
Message-ID: <address@hidden>
Content-Type: text/plain; charset=us-ascii; format=flowed

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





reply via email to

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