Configuring IBM MQ (WebSphere MQ) for data enablement
Before you configure the WebSphere® MQ agent, it is recommended to the configure IBM® MQ (WebSphere MQ) first to enable the data that you want to monitor.
About this task
Decide what type of data that you want the WebSphere MQ agent to monitor. Enable the data at the queue manager by using the MQSC commands if the data is not produced by the queue manager by default.
runmqsc <qmgr_name>
Procedure
- To see the age of the oldest message on a queue, complete the steps as documented in Enabling real-time monitoring for queues.
- To monitor certain queue manager events that are not generated by the queue manager by default, complete the steps as documented in Enabling event monitoring for the queue manager.
- To get the transaction tracking data, complete the steps as documented in Enabling MQI application activity trace.
- To monitor a remote queue manager, ensure that the WebSphere MQ agent can collect monitoring data through a channel on the remote system. For more information, see Security settings for remote monitoring.
Enabling real-time monitoring for queues
About this task
To see the age of the oldest message (in seconds) on a queue, you must enable the real-time monitoring for the queue.
Procedure
Use the following commands to enable real-time monitoring for the queues in your environment.
Results
Enabling event monitoring for the queue manager
About this task
Event monitoring is one of the monitoring techniques that are available to monitor your IBM MQ network. After you enable the queue manager to emit certain types of events, event messages are put on event queues when the event occurs. So that these event messages can be monitored and displayed by the WebSphere MQ agent.
The following types of events are not monitored and displayed with the default queue manager configuration. Use the ALTER QMGR command to enable the queue manager to generate these events so that they can be displayed on the Application Performance Dashboard.
- Channel events
- Performance events
Procedure
Use the following commands to enable the queue manager to generate the events that you care:
-
To generate channel events, issue
ALTER QMGR CHLEV(ENABLED)
. -
To generate performance events, issue
ALTER QMGR PERFMEV(ENABLED)
.
Results
Enabling MQI application activity trace
About this task
Procedure
ALTER QMGR ACTVTRC(ON)
Security settings for remote monitoring
About this task
The following procedure provides an example of a simple security setting for remote monitoring. To exercise more precise control over the access granted to connecting systems at a channel level, you can use channel authentication records. For more information, refer to IBM MQ security mechanisms documentation.