解決MMM啟動監控報錯的問題

HelloWorld-Q發表於2021-07-13
[root@localhost home]# service mysql-mmm-monitor start
Daemon 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: /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

解決步驟

yum install epel-release
 yum install  perl-Log-Log4perl-Appender-Socket-UNIX
yum install -y perl-Algorithm-Diff perl-Class-Singleton perl-Proc-Daemon perl-Net-ARP perl-DBD-mysql
[root@localhost home]# service mysql-mmm-monitor start
Daemon bin: '/usr/sbin/mmm_mond'
Daemon pid: '/var/run/mmm_mond.pid'
Starting MMM Monitor daemon: Ok

報Angel.pm的錯誤

解決步驟

yum install -y perl-*
yum install -y libart_lgpl.x86_64
yum install -y mysql-mmm.noarch fail
yum install -y rrdtool.x86_64 
yum install -y rrdtool-perl.x86_64

重新 make && make install

[root@localhost mysql-mmm-2.2.1]#  /etc/init.d/mysql-mmm-agent  start
Daemon bin: '/usr/sbin/mmm_agentd'
Daemon pid: '/var/run/mmm_agentd.pid'
Starting MMM Agent daemon... Ok
[root@localhost mysql-mmm-2.2.1]# 

錯誤 (有誰知道怎麼解決的)

2021/07/13 15:36:30  INFO Spawning checker 'ping_ip'...
2021/07/13 15:36:30  INFO Signal received: exiting...
2021/07/13 15:36:31  INFO Shutting down checker 'ping_ip'...
2021/07/13 15:36:31  INFO Received shutdown request while waiting for network connection.
2021/07/13 15:36:31  INFO END
2021/07/13 15:36:31  INFO Child exited normally (with exitcode 0), shutting down
2021/07/13 15:36:32  INFO STARTING...
2021/07/13 15:36:32  INFO Waiting for network connection...
2021/07/13 15:36:32  INFO Spawning checker 'ping_ip'...
[root@localhost mysql-mmm]# mmm_control show
ERROR: Can't connect to monitor daemon!
[root@localhost mysql-mmm]# 
本作品採用《CC 協議》,轉載必須註明作者和本文連結
有夢想的人睡不著,沒有夢想的人睡不醒。

相關文章