Rabbitmq集群的management UI显示 Node statistics not available

一、环境说明

1、测试命令所在机器:192.168.1.228

2、rabbitmq集群所在机器:192.168.1.227

3、集群模式:haproxy+rabbitmq集群(3个实例,2个内存节点5673和5675,1个磁盘节点5674,镜像队列,)

haproxy:监听的端口为5672

4、集群信息:

[[email protected] rabbitmq]# rabbitmqctl -n [email protected] cluster_status

Cluster status of node [email protected]

[{nodes,[{disc,[[email protected]]},

{ram,[[email protected],[email protected]]}]},

{running_nodes,[[email protected],[email protected],

[email protected]]},

{cluster_name,<<"[email protected]">>},

{partitions,[]},

{alarms,[{[email protected],[]},

{[email protected],[]},

{[email protected],[]}]}]

二、现象

Rabbitmq集群的management UI显示 Node statistics not available

三、原因及解决办法

1、原因:cluster搭建起来后若在web管理工具中rabbitmq_management的Overview的Nodes部分看到“Node statistics not available”的信息,说明在该节点上web管理插件还未启用。

2、解决办法:直接在显示提示信息的节点上运行sudo rabbitmq-plugins enable rabbitmq_management即可。