The following information is displayed when you execute MMM_CONTORL show after Monitor starts
Error:can ' t connect to monitor daemon!
Solution Ideas:
Modifying a configuration file
Will debug=0
Switch
Debug=1
Then restart Mysql-mmm-monitor
DEBUG MySQL (DB2) = ' Error:connect ERROR (host = 10.10.1.100:3306, user = Mmm_monitor)! Can ' t connect to MySQL server on ' 10.10.1.100 ' (4) '
Reason: Because your agent configuration file is written in this db1. This DB2. There is no corresponding parsing in host. So I can't connect.
Workaround:
1. The corresponding relationship between each MySQL hostname and IP can be written in hosts.conf
2. You can use the DNS service
3. You can add skip-name-resolve to the MY.CNF
This article is from the "Cloud Life" blog, make sure to keep this source http://ovcer.blog.51cto.com/1145188/1587396
In building mysql-mmm environment times wrong