[Top][All Lists]

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

Re: Connection testing failed all the time

From: Martin Pala
Subject: Re: Connection testing failed all the time
Date: Tue, 21 Feb 2017 17:48:00 +0100


if you don't set the address in the port test, monit will try to connect to 
"localhost". It is possible that these ports are bound only on specific address 
and thus monit cannot connect via

You can use for example "lsof -nPi tcp | grep 5432 | grep LISTEN" to verify the 
address. You can then add it to the test using the "host" option, for example:

        if failed host port 54320 the alert

Best regards,

> On 15 Feb 2017, at 22:34, Lutz Mader <address@hidden> wrote:
> Hi all folks,
> I try to monitor some ports, but the monit connection testing failed all
> the time.
> I try something like this.
> if failed port 54320 the alert
> if failed port 54321 the alert
> The ports are available (from the application log).
> ODBC local server macbookpro.local:54320
> JDBC local server macbookpro.local:54321
> And I can connect to port 54321 with a jdbc application (using
> "teiid-9.0.1-jdbc.jar") and to port 54320 with an odbc application.
> I checked the available protocol list, but a specific protocol for jdbc
> or odbc ports is not available.
> The connection testing to a Postgres DB running on the same system works
> well. I use this.
> if failed port 5432 protocol pgsql the alert
> Any suggestion how to do a more detail testing to find out what is going
> wrong.
> With regards,
> Lutz
> --
> To unsubscribe:

reply via email to

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