Got error on conf /etc/mha/app1.cnf: Parameter name master_ip_failover_scrip is invalid!

问题:

[root@db03-53 ~]# masterha_check_repl --conf=/etc/mha/app1.cnf
Tue Apr  2 20:24:58 2019 - [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping.
Tue Apr  2 20:24:58 2019 - [info] Reading application default configuration from /etc/mha/app1.cnf..
Tue Apr  2 20:24:58 2019 - [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm, ln424] Error happened on checking configurations. Parameter name master_ip_failover_scrip is invalid!
 at /usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm line 283.
Tue Apr  2 20:24:58 2019 - [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm, ln523] Error happened on monitoring servers.
Tue Apr  2 20:24:58 2019 - [info] Got exit code 1 (Not master dead).
MySQL Replication Health is NOT OK!
[root@db03-53 ~]# masterha_check_status --conf=/etc/mha/app1.cnf
Got error on conf /etc/mha/app1.cnf: Parameter name master_ip_failover_scrip is invalid!

原因:

在做MHA的VIP时,我先授权再修改文件

解决方法:

[root@db03-53 ~]# ll /etc/mha/app1/master_ip_failover 
-rw-r--r-- 1 root root 2250 Mar 17  2017 /etc/mha/app1/master_ip_failover
[root@db03-53 ~]# vim /etc/mha/app1/master_ip_failover  #修改下面内容
my $vip = '10.0.0.55/24';
my $key = '0';
my $ssh_start_vip = "/sbin/ifconfig eth0:$key $vip";
my $ssh_stop_vip = "/sbin/ifconfig eth0:$key down";
[root@db03-53 ~]# dos2unix /etc/mha/app1/master_ip_failover
[root@db03-53 ~]# chmod +x /etc/mha/app1/master_ip_failover

Got error on conf /etc/mha/app1.cnf: Parameter name master_ip_failover_scrip is invalid!

上一篇:Cocos2d-x 基础元素


下一篇:IAP ARM程序升级boot和app程序堆栈大小的问题