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!