monit-general
[Top][All Lists]
Advanced

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

Re: [monit] Monit fails to create PID file on restart


From: Christopher Opena
Subject: Re: [monit] Monit fails to create PID file on restart
Date: Tue, 10 Mar 2009 09:57:48 -0800

Tom, are there any error logs in /var/log/httpd/ ?  Those might provide some clues as to why the PID file is not being created, which is generally a bad thing.

On Tue, Mar 10, 2009 at 9:53 AM, Tom Davis <address@hidden> wrote:
I apologize if this has been asked and answered, I did my fair share of searching and couldn't find anything. Basically what is happening is monit attempts to restart a process, which it actually suceeds in doing, but the PID file is not created, so monit thinks the process failed to restart! I am talking about httpd specifically here as I haven't tried anything else yet. When running the start/stop commands from the cl they work fine -- and create the proper PID file. Below is my httpd.conf and monitrc, hopefully someone can point out some stupid error on my part because I am at a loss.

monitrc:
set daemon  60
set logfile /var/log/monit.log
set mailserver localhost
set httpd port 3500 and
     allow admin:monit
allow localhost
include /etc/monit/cfg/*

 httpd.conf:
check process httpd with pidfile /var/run/httpd.pid
group apache
start program = "/etc/init.d/httpd start"
stop  program = "/etc/init.d/httpd stop"
if cpu is greater than 50% for 5 cycles then alert
if cpu is greater than 80% for 5 cycles then restart
# Auto-fail test to see if things are working
if totalmem is greater than 6.0 MB for 1 cycles then restart

log bits:
[CDT Mar 10 12:24:36] error    : 'httpd' total mem amount of 208176kB matches resource limit [total mem amount>6144kB]
[CDT Mar 10 12:24:36] info     : 'httpd' trying to restart
[CDT Mar 10 12:24:36] info     : 'httpd' stop: /etc/init.d/httpd
[CDT Mar 10 12:24:37] info     : 'httpd' start: /etc/init.d/httpd
[CDT Mar 10 12:25:07] error    : 'httpd' failed to start

Thanks for any help!

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


reply via email to

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