monit-general
[Top][All Lists]
Advanced

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

[monit] Install on CentOS 5


From: Hartman, Jerome
Subject: [monit] Install on CentOS 5
Date: Thu, 15 May 2008 14:58:14 -0500

I have monit installed on CentOS 5 this is a secure web server and when I start the monitor my Apache service is started then after 5 attempts it stops with a message not monitored the service is running, how can I fix this, Please advice.

 

Here is my Apache statement

 

check process apache with pidfile /var/run/httpd.pid
   group www
   start program = "/etc/init.d/httpd start"
   stop program  = "/etc/init.d/httpd stop"
   if failed host localhost port 80 type tcp
   protocol HTTP request /monit/token then restart
   if failed host localhost port 443 type TCPSSL
   protocol HTTP request /monit/token  then restart
   if failed host localhost port 80 protocol HTTP then alert
   if failed host localhost port 443 type tcpssl protocol HTTP then alert   
   if 5 restarts within 5 cycles then timeout

 

Thank you,

 

Jerome Hartman Sr.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

                         

 


reply via email to

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