Failed to start MySQL Monitor.
Failed to start MySQL Monitor.
** Failed to start MySQL MMM Monitor.**
[root@monitor ~]# tail -f /var/log/mysql-mmm/mmm_mond.log
** 2022/10/18 21:17:07 INFO STARTING...
2022/10/18 21:17:07 INFO Waiting for network connection...
2022/10/18 21:17:07 INFO Spawning checker 'ping_ip'...
2022/10/18 21:17:07 INFO Shutting down checker 'ping_ip'...
2022/10/18 21:17:07 INFO Network connection is available.
2022/10/18 21:17:07 INFO Performing initial checks...
2022/10/18 21:17:07 INFO Spawning checker 'mysql'...
2022/10/18 21:17:07 INFO Shutting down checker 'mysql'...
2022/10/18 21:17:07 INFO Spawning checker 'ping'...
2022/10/18 21:17:07 INFO Shutting down checker 'ping'...
2022/10/18 21:17:07 INFO Spawning checker 'rep_backlog'...
2022/10/18 21:17:07 INFO Shutting down checker 'rep_backlog'...
2022/10/18 21:17:07 INFO Spawning checker 'rep_threads'...
2022/10/18 21:17:07 INFO Shutting down checker 'rep_threads'...
2022/10/18 21:17:07 WARN No binary found for killing hosts (/usr/libexec/mysql-mmm/monitor/kill_host).** 2022/10/18 21:17:08 INFO Startup status:
Roles: Role Host Stored System Agent writer(192.168.0.21) master1 Yes Yes Yes reader(192.168.0.23) slave1 Yes Yes Yes reader(192.168.0.22) slave2 Yes Yes Yes reader(192.168.0.24) master2 Yes Yes Yes reader(192.168.0.25) master1 Yes Yes Yes
Hosts: Host Master Writable Stored state Agent state master1 - Yes ONLINE ONLINE slave1 master1 No ONLINE ONLINE master2 - No ONLINE ONLINE slave2 master1 No ONLINE ONLINE 2022/10/18 21:17:09 INFO Monitor started in active mode. 2022/10/18 21:17:12 INFO Spawning checker 'ping_ip'... 2022/10/18 21:17:12 INFO Spawning checker 'mysql'... 2022/10/18 21:17:12 INFO Spawning checker 'ping'... 2022/10/18 21:17:13 INFO Spawning checker 'rep_backlog'... 2022/10/18 21:17:13 INFO Spawning checker 'rep_threads'... 2022/10/18 21:17:13 INFO Check 'mysql' on 'master1' is ok! 2022/10/18 21:17:13 INFO Check 'mysql' on 'slave1' is ok! 2022/10/18 21:17:13 INFO Check 'mysql' on 'master2' is ok! 2022/10/18 21:17:13 INFO Check 'mysql' on 'slave2' is ok! 2022/10/18 21:17:13 INFO Check 'ping' on 'master1' is ok! 2022/10/18 21:17:13 INFO Check 'ping' on 'slave1' is ok! 2022/10/18 21:17:13 INFO Check 'ping' on 'master2' is ok! 2022/10/18 21:17:13 INFO Check 'ping' on 'slave2' is ok! 2022/10/18 21:17:13 INFO Check 'rep_backlog' on 'master1' is ok! 2022/10/18 21:17:13 INFO Check 'rep_backlog' on 'slave1' is ok! 2022/10/18 21:17:13 INFO Check 'rep_backlog' on 'master2' is ok! 2022/10/18 21:17:13 INFO Check 'rep_backlog' on 'slave2' is ok! 2022/10/18 21:17:13 INFO Check 'rep_threads' on 'master1' is ok! 2022/10/18 21:17:13 INFO Check 'rep_threads' on 'slave1' is ok! 2022/10/18 21:17:13 INFO Check 'rep_threads' on 'master2' is ok! 2022/10/18 21:17:13 INFO Check 'rep_threads' on 'slave2' is ok! 2022/10/18 21:18:37 INFO Signal received: exiting...
2022/10/18 21:18:37 INFO Shutting down checker 'rep_threads'...
2022/10/18 21:18:37 INFO Shutting down checker 'ping'...
2022/10/18 21:18:37 INFO Shutting down checker 'rep_backlog'...
2022/10/18 21:18:37 INFO Shutting down checker 'ping_ip'...
2022/10/18 21:18:37 INFO Shutting down checker 'mysql'...
2022/10/18 21:18:40 INFO END
**[root@monitor ~]# tail -f /var/log/messages **
2022/10/18 21:18:40 INFO END Oct 18 21:18:40 localhost mmm_mond:
2022/10/18 21:18:40 INFO Child exited normally (with exitcode 0), shutting down
Oct 18 21:18:40 localhost systemd: Failed to start MySQL MMM Monitor.
Oct 18 21:18:40 localhost systemd: Unit mysql-mmm-monitor.service entered failed state.
Oct 18 21:18:40 localhost systemd: mysql-mmm-monitor.service failed.
虚拟Ip:0.21----0.25 0.21 为写,其他为read
# master1 ip: 0.12
[root@localhost ~]# ip addr | grep ens32 2: ens32: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 inet 192.168.0.12/24 brd 192.168.0.255 scope global noprefixroute ens32 inet 192.168.0.25/32 scope global ens32 inet 192.168.0.21/32 scope global ens32
# master2 ip: 0.13
[root@localhost ~]# ip addr | grep ens32 2: ens32: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 inet 192.168.0.13/24 brd 192.168.0.255 scope global noprefixroute ens32 inet 192.168.0.24/32 scope global ens32
# slave1 ip:0.14
[root@localhost ~]# ip addr | grep ens32 2: ens32: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 inet 192.168.0.14/24 brd 192.168.0.255 scope global noprefixroute ens32 inet 192.168.0.23/32 scope global ens32
# slave ip:0.15
[root@localhost ~]# ip addr | grep ens32 2: ens32: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 inet 192.168.0.15/24 brd 192.168.0.255 scope global noprefixroute ens32 inet 192.168.0.22/32 scope global ens32 —————————————————————————————————————————————————
问题:systemctl restart mysql-mmm-monitor Job for mysql-mmm-monitor.service failed because a timeout was exceeded. See "systemctl status mysql-mmm-monitor.service" and "journalctl -xe" for details.
求解决思路:
半个月了没有找到答案
咱俩是不是一样的问题
朋友你的解决了吗