Controlling real-time monitoring

There are a number of queue and channel status attributes that will hold monitoring information if real-time monitoring is enabled. If real-time monitoring is not enabled, then no monitoring information will be held in the monitoring attributes.

Real-time monitoring can be enabled or disabled for individual queues or channels, or for multiple queue or channels. To control individual queues or channels, the queue attribute MONQ, or the channel attribute MONCHL, must be set to enable or disable real-time monitoring. To control many queues or channels together, real-time monitoring can be enabled or disabled at the queue manager level using the queue manager attributes MONQ and MONCHL. For all queue and channel objects whose monitoring attribute is specified with the default value, QMGR, real-time monitoring is controlled at the queue manager level.

Automatically defined cluster-sender channels are not WebSphere MQ objects, so do not have attributes in the same way as channel objects. To control automatically defined cluster-sender channels, use the queue manager attribute, MONACLS. This attribute determines whether automatically defined cluster-sender channels within a queue manager are enabled or disabled for channel monitoring.

Real-time monitoring can be set to one of the three monitoring levels, low, medium or high. This level is either set at the object level, or at the queue manager level. The choice of which level to use is dependant on your system. Collecting monitoring data may require the execution of some relatively expensive instructions (for example, obtaining system time), so in order to reduce the impact of real-time monitoring, the medium and low monitoring options measure a sample of the data at regular intervals rather than collecting data all the time. Table 24 summarizes the monitoring levels available with real-time monitoring:

Table 24. Monitoring levels
Level Description Usage
Low

Measure a small sample of the data, at regular intervals.

For objects that process a high volume of messages.

Medium

Measure a sample of the data, at regular intervals.

For most objects.

High

Measure all data, at regular intervals.

For objects that process only a few messages per second, on which the most current information is important.