ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » queue monitoring

Post new topic  Reply to topic
 queue monitoring « View previous topic :: View next topic » 
Author Message
ae06425
PostPosted: Tue Feb 01, 2011 8:02 am    Post subject: queue monitoring Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Feb 01, 2011 8:14 am    Post subject: Re: queue monitoring Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Feb 01, 2011 8:19 am    Post subject: Reply with quote

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
View user's profile Send private message
ae06425
PostPosted: Tue Feb 01, 2011 9:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Feb 01, 2011 10:13 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Feb 01, 2011 10:53 am    Post subject: Reply with quote

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
View user's profile Send private message
ae06425
PostPosted: Tue Feb 01, 2011 1:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Feb 01, 2011 2:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Feb 01, 2011 8:51 pm    Post subject: Re: queue monitoring Reply with quote

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
View user's profile Send private message Send e-mail
santnmq
PostPosted: Tue Feb 01, 2011 11:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » queue monitoring
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.