Mindmajix

Monitor EMS Queues/Topics Depths Using TIBCO Hawk

Monitoring of Queues/Topics Depths

Procedure:

a) Start the Hawk display. Refer to Section Getting started with Hawk display

start the hawk display

b) Right click on the target machine. Select Get Configuration -> Rulebases

right click the target machine, select get configuration->rulebase

c) On clicking Rulebases, you get Rulebase list. Click on create icon (first one).

on rulebases click on create icon

d) On clicking create, you get a rule editor.

rulebase editor

e) Click on create icon, you get a data source window. Click Edit.

on a data source window click edit

f) You can select MicroAgent & Methods. You can set arguments for the methods created. The argument description is available at left side of the window. Click on ‘ok’ after the configuring.

MicroAgents, Methods and Arguments

g) Here MicroAgent is JMS_Monitor (tcp: //localhost:7222), Method is And Method arguments queueRegExp is set as queue name. It retrieves the information about the queue/s whose name is matching with the argument value given (Pattern Match). If queueRegExp is not specified (Empty argument) then by default the information about all queues are fetched. Click on OK. Note: Refer to Hawk Controller: getQueues section in TIBCO Hawk Enterprise Message Service Microagent.pdf for more details or method description beneath the methods section in Hawk display.

h) Now click on ‘create’ to give test conditions in ‘Test editor’.

MicroAgent is JMS_Monitor, Method is getQueues, Arguments is queueRegExp

click on create to give test condition in test editor

Now click on ‘Edit’ to give specific monitoring condition.

i) The test condition can be specified. Here, the pending message count of the queue is monitored. After setting condition, click on OK.

pending message count of the queue is monitored

j) Click on create to specify action item.

Click on create to specify action item

k) Select the desired Action type. The Alert action is selected here. On clicking Insert, You can insert any of the categorized information retrieved from the method. Click on OK.

alert action is selected, click insert select information from method, then click ok

Screenshot_95

l) Click on OK to navigate to RuleBase Editor. Click on Apply Changes.

In Rulebase editor click on Apply changes

m) Click on Send Selected To. The window displays the list of Machine. Select the machine. Click OK.

click on send selected to, select the machine, click ok

n) A Pop Up window with success message.

a pop window with success message

o) At Hawk Monitor, the Rulebase Queue_Monitor is created.

the Rulebase Queue_Monitor is created

p) The hawk monitors the queue name which matches the regular expression “sample_hawk_demo”. When the pending message count exceeds 0. The Hawk Monitor components turn to red.

When the pending message count exceeds 0. The Hawk Monitor components turn to red

Cross check EMS Administrator tool. The pending message count exceeds zero.

The pending message count exceeds zero

q) Right Click on rulebase. Select Show Alerts.

Right Click on rulebase. Select Show Alerts

r) The alert details are displayed as follows.

r) The alert details are displayed as follows

s) Now, the pending messages are cleared.

pending messages are cleared

t) The Hawk Monitor components immediately turned to green. In Alert Display Window, the alert is marked as cleared.

Hawk Monitor components immediately turned to green. the alert is marked as cleared

u) Monitoring of Topic requires a similar procedure. Instead of getQueues, select getTopics in step f.

monitor ems queues/topics

Note:

.hrb File created for the Monitoring of Queue/topic depths:

queue_monitor.hrb


0 Responses on Monitor EMS Queues/Topics Depths Using TIBCO Hawk"

Leave a Message

Your email address will not be published. Required fields are marked *

Copy Rights Reserved © Mindmajix.com All rights reserved. Disclaimer.
Course Adviser

Fill your details, course adviser will reach you.