monit-general
[Top][All Lists]
Advanced

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

Re: Cannot open connection via TCP.


From: Martin Pala
Subject: Re: Cannot open connection via TCP.
Date: Thu, 6 Jun 2013 10:09:20 +0200

Maybe your mysql server is set to not accept TCP connections on the given 
address. You can use netstat/lsof to check whether mysql listens for 
connections and try to connect to the mysql server port for example using 
telnet to see, whether the connection can be established.

Regards,
Martin


On Jun 6, 2013, at 8:54 AM, AswinRoy <address@hidden> wrote:

> Hello,
> 
> I am using monit to monitor MySQL on another system in my same network. The
> ICMP echo request is established. But, monitoring ports ( MySQL ) doesn't
> work. Error shown is cannot open connection to INET ( ip address) via TCP
> when i checked the events through M/Monit. The code I use in monitrc file is 
> :
> 
>   check host remotehost with address xxx.xxx.x.xxx
>   if failed icmp type echo count 3 with timeout 3 seconds then alert
>   if failed port 3306 protocol mysql with timeout 15 seconds then alert
> 
> Should there be any change in the code? Or is it something regarding the
> port? I tried disabling ipv6 firewall using:
> sudo ufw disable
> 
> Regards. 
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://nongnu.13855.n7.nabble.com/Cannot-open-connection-via-TCP-tp168954.html
> Sent from the monit-general mailing list archive at Nabble.com.
> 
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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