monit-general
[Top][All Lists]
Advanced

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

Re: [monit] Apache Uptime Problem


From: Martin Pala
Subject: Re: [monit] Apache Uptime Problem
Date: Sun, 7 Mar 2010 22:39:16 +0100

The change is implemented in svn ... you can get the code from subversion repository this way:

  svn checkout http://monit.googlecode.com/svn/trunk/ monit

To compile:

  ./autogen.sh && make


Regards,
Martin


On Mar 7, 2010, at 10:05 AM, Martin Pala wrote:

Monit present the uptime based on timestamp of process' pidfile ... it is based on assumption that pidfile is created/updated only when process starts. Apache behaves differently though and it updates the pidfile timestamp even when the process PID doesn't change - such as on on reload (which could be called also after logrotate).

We will change monit to present real uptime based on process table information - not pidfile timestamp.

Regards,
Martin


On Mar 4, 2010, at 10:31 PM, nima chavooshi wrote:

Hi
First of all thanks for your efforts about this package.
I have problem with uptime apache in monit panel.
After run "apache2 reload" uptime of apache in monit is changed to
"0"!! but the start time and pid of first apache process is not
changed.of course another childs and apache process is changed.
I think after reload of apache, monit shows uptime based on one of
childs not first apache process!!
for example on my server apache processes before and after reload are as below:
before:
root      8618  0.0  0.2 167556 10980 ?        Ss   11:33   0:00
/usr/sbin/apache2 -k start
www-data 11370  0.0  0.5 170584 21388 ?        S    15:00   0:01
/usr/sbin/apache2 -k start
www-data 17885  0.0  0.6 175812 26664 ?        S    14:49   0:00
/usr/sbin/apache2 -k start
www-data 17886  0.0  0.5 170584 21292 ?        S    14:49   0:00
/usr/sbin/apache2 -k start
www-data 17888  0.0  0.5 170644 22948 ?        S    14:49   0:01
/usr/sbin/apache2 -k start
www-data 17889  0.0  0.5 171532 24128 ?        S    14:49   0:01
/usr/sbin/apache2 -k start
www-data 18270  0.0  0.5 170036 22912 ?        S    14:50   0:01
/usr/sbin/apache2 -k start


after reload apache:

root      8618  0.0  0.2 167556 11028 ?        Ss   11:33   0:00
/usr/sbin/apache2 -k start
www-data 24935  0.0  0.1 167692  6964 ?        S    15:47   0:00
/usr/sbin/apache2 -k start
www-data 24936  0.0  0.1 167556  6628 ?        S    15:47   0:00
/usr/sbin/apache2 -k start
www-data 24937  0.0  0.1 167556  6628 ?        S    15:47   0:00
/usr/sbin/apache2 -k start
www-data 24938  0.0  0.1 167556  6628 ?        S    15:47   0:00
/usr/sbin/apache2 -k start
www-data 24939  0.0  0.1 167556  6628 ?        S    15:47   0:00
/usr/sbin/apache2 -k start

Thanks for any help or guidance
--
N.Chavoshi


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



reply via email to

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