Created
December 3, 2012 05:11
-
-
Save cluther/4192854 to your computer and use it in GitHub Desktop.
Zenoss: Reset RabbitMQ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Run the following commands as root. | |
| service rabbitmq-server stop | |
| rm -Rf /var/lib/rabbitmq | |
| mkdir /var/lib/rabbitmq | |
| chown rabbitmq:rabbitmq /var/lib/rabbitmq | |
| service rabbitmq-server start | |
| rabbitmqctl add_vhost /zenoss | |
| rabbitmqctl add_user zenoss zenoss | |
| rabbitmqctl set_permissions -p /zenoss zenoss '.*' '.*' '.*' |
This is the script I use and it works for me.
#!/bin/bash
service rabbitmq-server stop
rm -Rf /var/lib/rabbitmq/mnesia/rabbit\@`hostname -s`
service rabbitmq-server start
rabbitmqctl add_user zenoss zenoss
rabbitmqctl add_vhost /zenoss
rabbitmqctl set_permissions -p /zenoss zenoss '.*' '.*' '.*'
I would also advise looking at this announcement.
http://community.zenoss.org/message/71139
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rebuilt the rabbit queue, using this script, but i am still getting 104 Errors in zenjobs log :( ,any new steps to take into account for 4.2 ?