我搭建mha,验证mysql主从是否同步,抛出了错误,我的系统的Centos7, mha的版本是:0.52
报错信息如下:
[root@localhost soft]#
[root@localhost soft]# masterha_manager --conf=/etc/mha/mha.conf
Sat Jun 24 01:13:13 2017 - [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping.
Sat Jun 24 01:13:13 2017 - [info] Reading application default configurations from /etc/mha/mha.conf..
Sat Jun 24 01:13:13 2017 - [info] Reading server configurations from /etc/mha/mha.conf..
Sat Jun 24 01:13:13 2017 - [info] MHA::MasterMonitor version 0.52.
Sat Jun 24 01:13:14 2017 - [info] Dead Servers:
Sat Jun 24 01:13:14 2017 - [info] Alive Servers:
Sat Jun 24 01:13:14 2017 - [info] 192.168.68.15(192.168.68.15:3306)
Sat Jun 24 01:13:14 2017 - [info] 192.168.68.16(192.168.68.16:3306)
Sat Jun 24 01:13:14 2017 - [info] 192.168.68.17(192.168.68.17:3306)
Sat Jun 24 01:13:14 2017 - [info] Alive Slaves:
Sat Jun 24 01:13:14 2017 - [info] 192.168.68.16(192.168.68.16:3306) Version=5.7.12-log (oldest major version between slaves) log-bin:enabled
Sat Jun 24 01:13:14 2017 - [info] Replicating from 192.168.68.15(192.168.68.15:3306)
Sat Jun 24 01:13:14 2017 - [info] Primary candidate for the new Master (candidate_master is set)
Sat Jun 24 01:13:14 2017 - [info] 192.168.68.17(192.168.68.17:3306) Version=5.7.12-log (oldest major version between slaves) log-bin:enabled
Sat Jun 24 01:13:14 2017 - [info] Replicating from 192.168.68.15(192.168.68.15:3306)
Sat Jun 24 01:13:14 2017 - [info] Not candidate for the new Master (no_master is set)
Sat Jun 24 01:13:14 2017 - [info] Current Alive Master: 192.168.68.15(192.168.68.15:3306)
Sat Jun 24 01:13:14 2017 - [info] Checking slave configurations..
Sat Jun 24 01:13:14 2017 - [info] Checking replication filtering settings..
Sat Jun 24 01:13:14 2017 - [info] binlog_do_db= , binlog_ignore_db=
Sat Jun 24 01:13:14 2017 - [info] Replication filtering check ok.
Sat Jun 24 01:13:14 2017 - [error][/usr/lib/perl5/vendor_perl//MHA/MasterMonitor.pm, ln315] Error happend on checking configurations. Argument "1 # M-hM-/M-% MySQL M-fM-0M-8M-hM-?M-^\M-dM-8M-\rM-eM-^A..." isn't numeric in numeric ge (>=) at /usr/lib/perl5/vendor_perl//MHA/ServerManager.pm line 1083.
Sat Jun 24 01:13:14 2017 - [error][/usr/lib/perl5/vendor_perl//MHA/MasterMonitor.pm, ln396] Error happened on monitoring servers.
Sat Jun 24 01:13:14 2017 - [info] Got exit code 1 (Not master dead).