Author |
Message
|
ae06425 |
Posted: Tue Feb 01, 2011 8:02 am Post subject: queue monitoring |
|
|
Centurion
Joined: 02 Apr 2007 Posts: 100
|
Hi All
I'd like to set special monitoring for a queue.
If any message is not processed within certain amount of time (like 5mins)
, i.e, if there is no mqget activity against the queue we would like to be notified.
How can this be done? any hints, tips, docs, links appreciated.
Using mq 6.0.2.4 in unix
thx |
|
Back to top |
|
 |
Vitor |
Posted: Tue Feb 01, 2011 8:14 am Post subject: Re: queue monitoring |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ae06425 wrote: |
How can this be done? any hints, tips, docs, links appreciated. |
Look up "queue service interval events" in the WMQ documentation. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Feb 01, 2011 8:19 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
If you've got influence over the message being sent, you could also use report messages _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ae06425 |
Posted: Tue Feb 01, 2011 9:49 am Post subject: |
|
|
Centurion
Joined: 02 Apr 2007 Posts: 100
|
I dont have influence over the message being sent as these are spesific applications using queues.
searched for this option; "queue service interval events"
I dont think this will help either as this also generates events when you put messages on the queue with like mqput.
I am looking only for some type of event generated when any message not consumed from the queue, i.e, no mqget against a queue for like 5 mins. In another words, no activity to process(consume) messages in the queue.
thx |
|
Back to top |
|
 |
Vitor |
Posted: Tue Feb 01, 2011 10:13 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ae06425 wrote: |
I dont think this will help either as this also generates events when you put messages on the queue with like mqput. |
I never said it would be as simple as just picking up a message. You might have to do some work, like determining if the event is one of the ones that you're interested in.
ae06425 wrote: |
I am looking only for some type of event generated when any message not consumed from the queue, i.e, no mqget against a queue for like 5 mins. In another words, no activity to process(consume) messages in the queue. |
What you're describing is the queue service interval high event, which as you correctly point out is produced in association with other events. If you don't think that will help you then you're down to writing custom monitoring code.
Which experience teaches is less efficient & more troublesome than the events. But you know your needs best. You wanted a hint, that was mine & based solely on what I've done in the past when I've had a requirement similar to yours. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Feb 01, 2011 10:53 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You could also look at the options available for monitoring the LastPutTime on the queue.
I forget if there's a specific event message or statistics message for that. |
|
Back to top |
|
 |
ae06425 |
Posted: Tue Feb 01, 2011 1:59 pm Post subject: |
|
|
Centurion
Joined: 02 Apr 2007 Posts: 100
|
ok, I looked more in detail to "queue service interval events"
I made the test setup
ALTER QMGR PERFMEV(ENABLED)
ALTER QLOCAL(<qname>) QSVCINT(10000) QSVCIEV(HIGH)
How do I read for these events from "SYSTEM.ADMIN.PERFM.EVENT"
MQRC_Q_SERVICE_INTERVAL_HIGH
MQRC_Q_SERVICE_INTERVAL_OK
do I need coding to read these?
I only have some perl and I haven't done any mq coding.
thx |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Feb 01, 2011 2:56 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
ae06425 wrote: |
I only have some perl |
The perl modules for MQ in CPAN have a lot of helpers in this area... |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Feb 01, 2011 8:51 pm Post subject: Re: queue monitoring |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
ae06425 wrote: |
Hi All
I'd like to set special monitoring for a queue.
If any message is not processed within certain amount of time (like 5mins)
, i.e, if there is no mqget activity against the queue we would like to be notified.
How can this be done? any hints, tips, docs, links appreciated.
Using mq 6.0.2.4 in unix
thx |
You might also want to look into specific monitoring software.
You can monitor the time on queue and get rate and alert on that.
You will need to check the product specification. We do alert on that and we use QPasa.... (in the process of upgrading to the latest version called BMC Middleware and Performance Monitoring or something like that).
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
santnmq |
Posted: Tue Feb 01, 2011 11:06 pm Post subject: |
|
|
Centurion
Joined: 11 Jan 2011 Posts: 125
|
You can also use MQ APIs to get the age of oldest message on the queue (MSGAGE).
Based on the oldest message present on the queue you can have alerts. |
|
Back to top |
|
 |
|