yoshinorim / mha4mysql-manager

Development tree of Master High Availability Manager and tools for MySQL (MHA), Manager part
http://code.google.com/p/mysql-master-ha/
GNU General Public License v2.0
1.46k stars 501 forks source link

Question about run mha on Ubuntu 20.04,mariadb 10.3.25 #146

Closed tf36 closed 3 years ago

tf36 commented 3 years ago

I try to do repl check it kept says it have theses problem i tried to connect directly through mysql -u user -p --host, and it was work

mha@monitorserver:~$ masterha_check_repl --conf /etc/mha.cnf Thu Feb 4 14:36:48 2021 - [info] Reading default configuration from /etc/masterha_default.cnf.. Thu Feb 4 14:36:48 2021 - [info] Reading application default configuration from /etc/mha.cnf.. Thu Feb 4 14:36:48 2021 - [info] Reading server configuration from /etc/mha.cnf.. Thu Feb 4 14:36:48 2021 - [info] MHA::MasterMonitor version 0.58. Thu Feb 4 14:36:50 2021 - [error][/usr/share/perl5/MHA/MasterMonitor.pm, ln427] Error happened on checking configurations. Redundant argument in sprintf at /usr/share/perl5/MHA/NodeUtil.pm line 195. Thu Feb 4 14:36:50 2021 - [error][/usr/share/perl5/MHA/MasterMonitor.pm, ln525] Error happened on monitoring servers. Thu Feb 4 14:36:50 2021 - [info] Got exit code 1 (Not master dead).

MySQL Replication Health is NOT OK!

P.S. I found this https://code.google.com/archive/p/mysql-master-ha/issues/70,but i have no idea where that SlaveUtil.pm are.

tf36 commented 3 years ago

sorry I found it

hungnt1 commented 10 months ago

Can you tell me how to solve it ?