monit-general
[Top][All Lists]
Advanced

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

Re: [monit] Monit believes web service is up even when it is not


From: Brendan Martens
Subject: Re: [monit] Monit believes web service is up even when it is not
Date: Thu, 5 Nov 2009 13:30:26 -0500

Someone please correct me if I'm wrong... 

How is monit to know what service to restart without a PID?  It needs that information in order to restart. I don't know how Domino works, but there is most likely a parent thread that you can look at to figure out if its running or not.

Perhaps there would also be some clues as to what monit is doing/trying to do in the log files?

Brendan

On Nov 5, 2009, at 1:23 PM, Balcoes wrote:

Hi
 
I have monit v5.0 and CentOS release 4.8 (Final).
 
I try monitor Lotus Domino web server with the following config file:
    check host myserver with address myserver
        start program  "/etc/init.d/domino start" with timeout 300 seconds
        stop program   "/etc/init.d/domino stop"  with timeout 150 seconds
        if failed host 192.168.1.10 port 80 protocol http 10 times within 10 cycles then restart
        if 6 restarts within 60 cycles then timeout
 
If the web server is up, monit status page shows:
  Remote Host 'myserver'
    status                            online with all services
    monitoring status                 monitored
    port response time                0.001s to 192.168.1.10:80 [HTTP via TCP]
    data collected                    Thu Nov  5 20:09:55 2009
as it should.
 
However if the server is down, monit states:
  Remote Host 'myserver'
    status                            online with all services
    monitoring status                 monitored
    port response time                -1.000s to 192.168.1.10:80 [HTTP via TCP]
    data collected                    Thu Nov  5 20:10:57 2009
 
I.e. the only difference is that port response time is -1.000s. But monit believes that the server is up and doesn’t try to reboot it. How come? What am I missing?
 
B
 
P.S: The config file doesn’t use PID file as Domino doesn’t have a single process. Instead it spawns typically approximately 200 processes.
 
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general


reply via email to

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