|
From: | Christopher Opena |
Subject: | Re: [monit] Monit fails to create PID file on restart |
Date: | Tue, 10 Mar 2009 09:57:48 -0800 |
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.pidlog bits:
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
[CDT Mar 10 12:24:36] error : 'httpd' total mem amount of 208176kB matches resource limit [total mem amount>6144kB]Thanks for any help!
[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
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general
[Prev in Thread] | Current Thread | [Next in Thread] |