IBM MQ agent - how to set the user name and password to access the queue manager?

Document ID : KB000117125
Last Modified Date : 09/10/2018
Show Technical Document Details
Issue:
We have deployed the 10.5.2.24 (Build 990600) IBM MQMonitor Agent. Our agent is running as a remote agent on a RHEL server and the agent is started by the "admin1" user which is a system account. Currently the agent will authorize through to the queue manager using the account that started the agent which is"admin1".
Can the MQMonitor Agent pass user name and password to access the queue manager?
Resolution:
Make sure we have following HOTFIX for APM 10.5.2 MQMonitor Agent.

APM10.5.2HF48_DE381832

Stop MQMonitor Agent.

Modify the MQMonitor.properties file and add the following properties:

<Queue Manager>@<Host>.username=myuser 
<Queue Manager>@<Host>.password=mypassword
<Queue Manager>@<Host>.plain.password=true 

Start MQMonitor Agent.

Check if this functionality is working properly