[Top][All Lists]

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

[monit] Monit fails to create PID file on restart

From: Tom Davis
Subject: [monit] Monit fails to create PID file on restart
Date: Tue, 10 Mar 2009 13:53:12 -0400

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.

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/*

check process httpd with pidfile /var/run/
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!

reply via email to

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