Changing The MnR RabbitMQ ingestion password
search cancel

Changing The MnR RabbitMQ ingestion password

book

Article ID: 338325

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Overview of how to change the MnR RabbitMQ ingestion password

Environment

Watch4Net/M&R 7.X

Resolution


Alert-ingestion is a component running in Tomcat that pulls notifications from RabbitMQ and inserts them in to the Notification cache. The RabbitMQ login for this service is ingestion with the default password of changeme. To change this password, you must update both RabbitMQ and the alerts-ingestion configuration with a new matching password.

Procedure:

  • Log in to the RabbitMQ web-based management interface as admin admin using the default password of changeme. 
    • To access the RabbitMQ web-based management interface, connect with a browser to port 15672 on the host where RabbitMQ is installed
  • For example:
    • http://XXX.X.X.X:XXXXX/

  • Click the Admin tab and select ingestion from the list of RabbitMQ login users.

              

  • Click Update this user.    **Do not edit the Tags field**

            

  • Enter the new password in both password fields.

           

  • Click Update User.    **Do not edit the Tags field**

           

  • To change the password in alerts-ingestion:
    • Stop the Smarts Tomcat service by typing sm_service stop smarts-tomcat.
    • Using a text editor, open the file <BASEDIR>SAM/smarts/tomcat/webapps/alerts-ingestion/WEB-INF/classes
      rabbitmq-config.xml.
    • Example: 
vi /opt/InCharge/SAM/smarts/tomcat/webapps/alerts-ingestion/WEB-INF/classes/rabbitmq-config.xml
  • Find the password line that looks like this:

                         <property name="password" value="changeme" />
                         

  • Replace changeme with the new password.   In this example, the password was changed to california:

                        <property name="password" value="california" />  
                                             

  • Stop and Start the Smarts Tomcat service by typing the following command.
            <BASDIR>/SAM/smarts/bin/sm_service stop smarts-tomcat
            <BASDIR>/SAM/smarts/bin/sm_service start smarts-tomcat
    • In the RabbitMQ interface, click the Connections tab and verify alerts-ingestion is connected. It may take a few minutes for Tomcat to start and for alerts-ingestion to connect.