Example: Configuring a resource monitor to monitor a queue
You can specify a WebSphere® MQ queue as the resource to be monitored by a resource monitor by using the -mq parameter with the fteCreateMonitor command.
About this task
In this example, the resource to be monitored is the queue MONITORED_QUEUE. This queue must be on the monitoring agent's queue manager, QM_NEPTUNE. The condition that the queue is monitored for is the presence of a complete group of messages. The task to be performed if the condition is satisfied is defined in the file task.xml.
Procedure
Type the following command:
fteCreateMonitor -ma AGENT_NEPTUNE -mn myMonitor -mm QM_NEPTUNE -mq MONITORED_QUEUE -mt task.xml -tr completeGroups -pi 5 -pu minutes