LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   Haproxy can't monitor other server mysql status (https://www.linuxquestions.org/questions/centos-111/haproxy-cant-monitor-other-server-mysql-status-4175604375/)

suhendra 04-22-2017 12:47 AM

Haproxy can't monitor other server mysql status
 
Hi guys,
i try executing a query on one of the masters as the haproxy user but i get error ilke this:
ERROR 2003 (HY000): Can't connect to MySQL server on '10.0.0.2' (113 "No route to host")
what is going on? i need to monitoring mysql status using haproxy.

thanks for your help. :)

TB0ne 04-23-2017 09:14 AM

Quote:

Originally Posted by suhendra (Post 5700522)
Hi guys,
i try executing a query on one of the masters as the haproxy user but i get error ilke this:
ERROR 2003 (HY000): Can't connect to MySQL server on '10.0.0.2' (113 "No route to host")
what is going on? i need to monitoring mysql status using haproxy.

Well, the message is pretty clear...it's telling you either the MySQL database on that host isn't running, or you don't have a network connection to that host. Have you done any basic troubleshooting yet?? The log files will probably have details.

Log into that host, and try to attach to mysql from there. If you can, then there is a network problem between the two machines, either causes by a firewall, IPtables, or a router/switch/hardware between the two.

nejnej25 12-29-2017 12:37 AM

Your node where the MySQL reside is maybe down, network error, or firewall policy to block some nodes. Investigate your MySQL host machine.

TB0ne 12-29-2017 09:11 AM

Quote:

Originally Posted by nejnej25 (Post 5799128)
Your node where the MySQL reside is maybe down, network error, or firewall policy to block some nodes. Investigate your MySQL host machine.

Right...that's what the OP was told in the first reply, eight months ago.

nejnej25 12-29-2017 10:07 AM

Quote:

Originally Posted by TB0ne (Post 5799271)
Right...that's what the OP was told in the first reply, eight months ago.

Well that's most root cause of your issue. Did you solved it?

TB0ne 12-30-2017 07:40 PM

Quote:

Originally Posted by nejnej25 (Post 5799289)
Well that's most root cause of your issue. Did you solved it?

You need to read the thread before responding. It was not my issue, and the poster never came back. You gave the same advice I did, eight months ago.


All times are GMT -5. The time now is 06:50 AM.