Monitoring Of Queues/Topics Depths

Procedure:

a) Start the Hawk display. Refer to Section Getting Started With Hawk Display

Hawk display

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

Rulebases

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

Rulebase list

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

rule editor

Learn how to use Tibco Spotfire, from beginner basics to advanced techniques, with online video tutorials taught by industry experts. Enroll for Free Tibco Spotfire Training Demo!

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

data source window

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.

MicroAgent & Methods

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’.

Subscribe to our youtube channel to get new updates..!

JMS_Monitor

rule base 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.

test builder

j) Click on create to specify action item.

rulebase editor1

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.

action editoraction editor 1

Frequently Asked Tibco Spotfire Interview Questions & Answers

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

rulebase list for agent

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

rulebase list 2

n) A Pop Up window with success message.

success message window

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

Hawk Monitor

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.

Hawk Monitor

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

EMS Administrator tool

q) Right Click on rulebase. Select Show Alerts.

Select Show Alerts

r) The alert details are displayed as follows.

alert display for rulebase

s) Now, the pending messages are cleared.

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

Hawk Monitor components

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

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

 

 

 

Explore Tibco Spotfire Sample Resumes! Download & Edit, Get Noticed by Top Employers!Download Now!