Home >Database >Mysql Tutorial >ERROR: Can not connect to monitor daemon!的问题

ERROR: Can not connect to monitor daemon!的问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 17:35:321429browse

使用yum install mysql-mmm安装的。mmm软件安装完了,配置都写好了,但是执行/usr/sbin/mmm_control show报错如下:ERROR: Can n

使用yum install mysql-mmm安装的。

mmm软件安装完了,配置都写好了,但是执行/usr/sbin/mmm_control show报错如下:

ERROR: Can not connect to monitor daemon!

1,检查db1和db2上面的agent,都是开启的。

2,检查iptables,也都是好的,没有过滤。

3,去看mmm的日志报告,报连接127.0.0.1的端口9988的socket没有创建成功,创建失败。求助同事分析,得出以下2种情况:

(1):mmm_common.conf里面 socket 没有设置好,需要添加配置如下:

    type plain

    cert_file /etc/mysql-mmm/ssl_crt.pem

    key_file /etc/mysql-mmm/ssl_key.pem

    ca_file /etc/mysql-mmm/ca_crt.pem

 

之后重新启动monitor服务,check下/usr/sbin/mmm_control show是成功的。

(2):原来进行debug的monitor没有彻底被stop,所以再启动一个新的monitor就会失败,用netstat -tupln | grep 9988或者 netstat -anp|grep 9988来检测是否已经开启端口。

[PS]:要在linux上面把mmm_control 之类的chown成mmmd帐号的权限。

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn