[Top][All Lists]

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

Re: How to monit ports

From: Martin Pala
Subject: Re: How to monit ports
Date: Thu, 20 Oct 2011 09:26:44 +0200

Hello Pratap,

you can run Monit in verbose mode (using -v option) to see the details about the particular checks. Monit will first test whether the process is running and if so, it will continue with the port test. If the process is not running, monit will restart it (the port test is skipped in the cycle where monit restarts the service). If you have added the port configuration later, did you reloaded monit? (if not, the previous configuration is still active). 

Yet one note: please don't resubmit the question to the mailinglinst if you don't get response immediately (you have resubmited it 3x within last 24 hours) - the mailinglist is not commercial support chanel.


On Oct 20, 2011, at 8:59 AM, Pratap Kumar wrote:

On Wed, Oct 19, 2011 at 4:47 PM, Pratap Kumar <address@hidden> wrote:

I am using Monit tool for  my services.Though the service comes up,the port always down.One of my service configured as below to monitor the ports.

check process xyz.Service  with pidfile /var/run/
    start program = "/opt/xyz/bin/service start "
    stop program  = "/opt/xyz/bin/service stop "
         if failed port 445 for 1 cycles
           then restart

But it Always checks the PID file and throws one info message (PID file not changed from last cycles) instead of checking the port connection and restaring the service.

Could you please help me out ,how to configure and  monitor the ports.

Thanks in advance for your precious support.


To unsubscribe:

reply via email to

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