Operating System - Linux
1827775 Members
2565 Online
109969 Solutions
New Discussion

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 p@abc.com
set alert p@zbc.pl
set alert p@jabber.org
set alert p@jabber.org
#set alert c@abc.com
set httpd port 2812
allow localhost
allow admin:<>??><
allow 81.150.xxx.xxx
allow 217.155.xxx.xxx

# 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


#apache

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 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
Host: server.abc.com
Description: 'httpd' service timed out and will not be checked anymore

Your faithful employee,
monit


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

Cheers
Jesus is the King