本文主要向大家介绍了MySQL数据库之关于MySQL-MMM架构的一些报错及解决方法 ,通过具体的内容向大家展现,希望对大家学习MySQL数据库有所帮助。
一、agent进程
[root@master2 mysql-mmm-2.2.1]# /etc/init.d/mysql-mmm-agent startDaemon bin: '/usr/sbin/mmm_agentd'Daemon pid: '/var/run/mmm_agentd.pid'Starting MMM Agent daemon... Can't locate Proc/Daemon.pm in @INC (@INC contains: /root/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi /root/perl5/lib/perl5/5.16.3 /root/perl5/lib/perl5/x86_64-linux-thread-multi /root/perl5/lib/perl5 /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/sbin/mmm_agentd line 7.BEGIN failed--compilation aborted at /usr/sbin/mmm_agentd line 7.failed
出现以上报错信息,可能是由于缺少环境变量导致服务启动失败。
解决方法
[root@master2 mysql-mmm-2.2.1]# cpan Proc::Daemon
[root@master2 mysql-mmm-2.2.1]# cpan Log::Log4perl
再次启动[root@master2 mysql-mmm-2.2.1]# /etc/init.d/mysql-mmm-agent startDaemon bin: '/usr/sbin/mmm_agentd'Daemon pid: '/var/run/mmm_agentd.pid'Starting MMM Agent daemon... Ok
二、监控进程
[root@monitor ~]# /etc/init.d/mysql-mmm-monitor startDaemon bin: '/usr/sbin/mmm_mond'Daemon pid: '/var/run/mmm_mond.pid'Starting MMM Monitor daemon: Can't locate Proc/Daemon.pm in @INC (@INC contains: /root/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi /root/perl5/lib/perl5/5.16.3 /root/perl5/lib/perl5/x86_64-linux-thread-multi /root/perl5/lib/perl5 /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/sbin/mmm_mond line 11.BEGIN failed--compilation aborted at /usr/sbin/mmm_mond line 11.failed
解决方法:安装下列perl的库
[root@monitor ~]# cpan Proc::Daemon
[root@monitor ~]# cpan Log::Log4perl
再次启动[root@monitor ~]# /etc/init.d/mysql-mmm-monitor startDaemon bin: '/usr/sbin/mmm_mond'Daemon pid: '/var/run/mmm_mond.pid'Starting MMM Monitor daemon: Ok
本文由职坐标整理并发布,希望对同学们学习MySQL有所帮助,更多内容请关注职坐标数据库MySQL数据库频道!