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: Aswin Roy
Subject: Re: Cannot open connection via TCP.
Date: Fri, 7 Jun 2013 17:01:17 +0530

There is a new problem. I am able to monitor Mysql on remote host. But, when i start/stop the service from the UI, it doesn't work. The service would still be running in the remote host even if i stop it on Monit. 
This is my code in monitrc file:
 
 check process mysql-remote with pidfile /var/run/mysqld/mysqld.pid
   group database
   start program = "/etc/init.d/mysql restart"
   stop program = "/etc/init.d/mysql stop"
   if failed host 192.168.0.189 port 3306 then restart
   if 5 restarts within 5 cycles then timeout




On Fri, Jun 7, 2013 at 12:12 PM, Aswin Roy <address@hidden> wrote:
I have another question. Can someone help me with a guide on how to monitor a Storm cluster using monit? 

Regards. 


On Fri, Jun 7, 2013 at 12:11 PM, Aswin Roy <address@hidden> wrote:
I've fixed the problem. I had to change the bindaddress inside my.conf file of mysql.
bindaddress was set to localhost, had to change it to 0.0.0.0

Thanks for the help.


On Thu, Jun 6, 2013 at 6:00 PM, Markus Heinze <address@hidden> wrote:
Hi,

Am 2013-06-06 13:45, schrieb Martin Pala:

The 127.0.0.1 is loopback (local-only network) => you cannot access
it from other network hosts.

You have two options if you want to test it:
1.) reconfigure MySQL to listen on any network interface
2.) or install monit on that machine and test it via 127.0.0.1

But first - i think you should read some linux administration and
network basics, as it's dangerous to try monitoring something when you
don't understand how it works.


think tunnel port 3306 through ssh maybe the best solution

regards max



--
Aswin Jose Roy
Computer Science and Engineering (2010-2014)
Govt. Model Engineering College
Cochin-21
+91 9746237979



--
Aswin Jose Roy
Computer Science and Engineering (2010-2014)
Govt. Model Engineering College
Cochin-21
+91 9746237979



--
Aswin Jose Roy
Computer Science and Engineering (2010-2014)
Govt. Model Engineering College
Cochin-21
+91 9746237979
address@hidden

reply via email to

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