Showing results for 
Search instead for 
Did you mean: 

monit - httpd unmonitored

Piotr Kirklewski
Super Advisor

monit - httpd unmonitored

Hi there

Here's my monitrc file:

set daemon 60
set logfile syslog facility log_daemon
set alert
set alert
set alert
set alert
#set alert
set httpd port 2812
allow localhost
allow admin:<>??><

# localhost

check system localhost
if loadavg (1min) > 4 then alert
if loadavg (5min) > 3 then alert
if memory usage > 70% then alert
if cpu usage (user) > 70% then alert
if cpu usage (system) > 70% then alert
if cpu usage (wait) > 30% then alert


check process httpd with pidfile /var/run/
group apache
start program = "/etc/init.d/httpd start"
stop program = "/etc/init.d/httpd stop"
if failed port 80 protocol http then restart
if cpu > 60% for 2 cycles then alert
if cpu > 90% for 5 cycles then alert
if children > 255 then restart
if loadavg(5 min) greater than 10 for 8 cycles then alert
if totalmem > 200.0 MB for 5 cycles then alert
if 3 restarts within 5 cycles then timeout

I was trying to test it and then I,ve received message from monit that httpd is being unmonitored:

Timeout Service httpd

Date: Wed, 18 Jul 2007 10:00:01 +0100
Action: unmonitor
Description: 'httpd' service timed out and will not be checked anymore

Your faithful employee,

I don't have nothing like unmonitor rule in my file - why the message then ?

Jesus is the King