配置MHA高可用集群的报错
masterha_check_ssh --conf=/data/mha/app1.cnf验证ssh远程是报错
[root@localhost ~]# masterha_check_ssh -conf=/etc/masterha/app1.cnf
Can't locate Log/Dispatch.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/share/perl5/MHA/SSHCheck.pm line 29.
BEGIN failed--compilation aborted at /usr/local/share/perl5/MHA/SSHCheck.pm line 29.
Compilation failed in require at /usr/local/bin/masterha_check_ssh line 25.
BEGIN failed--compilation aborted at /usr/local/bin/masterha_check_ssh line 25.
出现这种问题是因为缺少perl-Mail-Sender和 perl-Log-Dispatch这两个语言环境
解决方法:
[root@localhost ~]# yum install perl-Mail-Sender
[root@localhost ~]# yum install perl-Log-Dispatch