How to enable rabbitmq plugin to use it in GUI mode with openstack ?

In this article I am going to show, How can we enable rabbitmq plugin to access the GUI mode.

Generally, we are running commands like “rabbitmqctl report” to verify the status of rabbitmq. Sometimes command line output is not easy to read, nothing to worry, we can verify the same state in GUI mode by enabling plugin in rabbitmq but this will require the restart of rabbitmq service.

  1. Listing the available plugins for rabbitmq.

[root@allinone ~(keystone_admin)]# /usr/lib/rabbitmq/bin/rabbitmq-plugins list
[ ] amqp_client                       3.3.5
[ ] cowboy                            0.5.0-rmq3.3.5-git4b93c2d
[ ] eldap                             3.3.5-gite309de4
[ ] mochiweb                          2.7.0-rmq3.3.5-git680dba8
[ ] rabbitmq_amqp1_0                  3.3.5
[ ] rabbitmq_auth_backend_ldap        3.3.5
[ ] rabbitmq_auth_mechanism_ssl       3.3.5
[ ] rabbitmq_consistent_hash_exchange 3.3.5
[ ] rabbitmq_federation               3.3.5
[ ] rabbitmq_federation_management    3.3.5
[ ] rabbitmq_management               3.3.5
[ ] rabbitmq_management_agent         3.3.5
[ ] rabbitmq_management_visualiser    3.3.5
[ ] rabbitmq_mqtt                     3.3.5
[ ] rabbitmq_shovel                   3.3.5
[ ] rabbitmq_shovel_management        3.3.5
[ ] rabbitmq_stomp                    3.3.5
[ ] rabbitmq_test                     3.3.5
[ ] rabbitmq_tracing                  3.3.5
[ ] rabbitmq_web_dispatch             3.3.5
[ ] rabbitmq_web_stomp                3.3.5
[ ] rabbitmq_web_stomp_examples       3.3.5
[ ] sockjs                            0.3.4-rmq3.3.5-git3132eb9
[ ] webmachine                        1.10.3-rmq3.3.5-gite9359c7

     2. We need to enable the rabbitmq_management plugin to access the GUI mode of rabbitmq.

[root@allinone ~(keystone_admin)]# /usr/lib/rabbitmq/bin/rabbitmq-plugins list -v rabbitmq_management
[ ] rabbitmq_management
Version:         3.3.5
Dependencies:    [rabbitmq_web_dispatch,amqp_client,
rabbitmq_management_agent]
Description:     RabbitMQ Management Console

[ ] rabbitmq_management_agent
Version:         3.3.5
Description:     RabbitMQ Management Agent

[ ] rabbitmq_management_visualiser
Version:         3.3.5
Dependencies:    [rabbitmq_management]
Description:     RabbitMQ Visualiser

     3. Let’s enable that plugin.

[root@allinone ~(keystone_admin)]# /usr/lib/rabbitmq/bin/rabbitmq-plugins enable rabbitmq_management
The following plugins have been enabled:
mochiweb
webmachine
rabbitmq_web_dispatch
amqp_client
rabbitmq_management_agent
rabbitmq_management
Plugin configuration has changed. Restart RabbitMQ for changes to take effect.

    4. As above output message indicate that we need to restart the rabbitmq to bring that change into reflect hence I did the same.

[root@allinone ~(keystone_admin)]# systemctl list-units | grep -i rabbit
rabbitmq-server.service                                                                  loaded active running   RabbitMQ broker

[root@allinone ~(keystone_admin)]# systemctl restart rabbitmq-server

[root@allinone ~(keystone_admin)]# systemctl list-units | grep -i rabbit
rabbitmq-server.service                                                                  loaded active running   RabbitMQ broker

     5.  We can access the GUI by browsing the below path.

http://<IP address>:15672

Credentials I got from below file.

/etc/rabbitmq/rabbitmq.config
guest / guest

     6. You can disable the plugin using below command again you need to restart the rabbitmq service.

[root@allinone ~(keystone_admin)]# /usr/lib/rabbitmq/bin/rabbitmq-plugins disable rabbitmq_management
The following plugins have been disabled:
mochiweb
webmachine
rabbitmq_web_dispatch
amqp_client
rabbitmq_management_agent
rabbitmq_management
Plugin configuration has changed. Restart RabbitMQ for changes to take effect.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s