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 » Dead Letter Queue monitoring

Post new topic  Reply to topic
 Dead Letter Queue monitoring « View previous topic :: View next topic » 
Author Message
tminifie
PostPosted: Fri Sep 26, 2008 7:37 am    Post subject: Dead Letter Queue monitoring Reply with quote

Apprentice

Joined: 18 Jan 2007
Posts: 26

I need to develop a script to monitor our CORE_DEAD_LETTER(DEAD_LETTER_QUEUE) queue, more specifically to email a list of people every time a message lands on this queue. I have some experience with MQ and I know that I could create a simple script that polls the queue every few sec/mins and sends off an email if the queue depth is greater than the depth during the previous poll. However, I don’t know that this is a good approach; any suggestions on how I could approach this? Perhaps MQ already has built in capability to do this?

We are using MQ v5.3 and v6.0.

Thanks,
Todd
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Fri Sep 26, 2008 7:38 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

What is your company's Monitoring solution? I'm sure it has an MQ component. I hope anyway. You should avoid reinventing this wheel.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
zpat
PostPosted: Fri Sep 26, 2008 7:48 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

I suppose it would be possible to trigger a program on message depth for the DLQ.

Then the program could be very simple and not have to "poll" the queue at all.
Back to top
View user's profile Send private message
tminifie
PostPosted: Fri Sep 26, 2008 7:48 am    Post subject: Reply with quote

Apprentice

Joined: 18 Jan 2007
Posts: 26

yes we are using SiteScope, but I am told by our administrator that the way it is currenlty configured, an AR Remedy ticket is opened every time a queue threshhold is hit and that is fine for all the other queues that we are currently monitoring but we don't want this to be the case for our dead letter queue monitoring. I don't know if this is a configuration limitation or a political issue so I am trying to come up with an alternative....
Back to top
View user's profile Send private message
jeevan
PostPosted: Fri Sep 26, 2008 8:30 am    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

tminifie wrote:
yes we are using SiteScope, but I am told by our administrator that the way it is currenlty configured, an AR Remedy ticket is opened every time a queue threshhold is hit and that is fine for all the other queues that we are currently monitoring but we don't want this to be the case for our dead letter queue monitoring. I don't know if this is a configuration limitation or a political issue so I am trying to come up with an alternative....


Each queue has it own requirement for monitoring and alerting. So, I do not think it is a problem. Eg. we use patrol. In regular queue, we raise an alert once the number of message riches a certain number but for a dlq, we raise an alert once it has a message.

You should not reinvent a wheel if there is not politics involved. If you can not use for tools for monitoring which is not for problem ticket, you can can simple perl script, poll for the queue, once it has a message, email a group of people you would like. I am not sure, you even can do this simply in unix sheel.
Back to top
View user's profile Send private message
tminifie
PostPosted: Fri Sep 26, 2008 9:23 am    Post subject: Reply with quote

Apprentice

Joined: 18 Jan 2007
Posts: 26

Thanks for the response Fella's.

I will go back to our administrator and if its company policy to always open an AR ticket when SiteScope queue monitoring is alerted then I will put a trigger on all of our dead letter queues to call a unix shell script that will send email notification.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Sep 26, 2008 10:01 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Application developers need to specify what should be done with messages that end up in your DLQ instead of the intended application queue. Emailing someone that this has happened is part of the solution.

IBM provides RUNMQDLQ, the dead-letter queue handler utlity. You can/should write a script (refer to the WMQ System Admin manual) that processes these dead messages out of the DLQ so it doesn't fill up and cause the channel to stop.

For example, if the message ended up in the DLQ because the destination queue was (briefly) full, the dead-letter handler can try again to put the message in the same (or different) destination queue.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
tminifie
PostPosted: Fri Sep 26, 2008 10:35 am    Post subject: Reply with quote

Apprentice

Joined: 18 Jan 2007
Posts: 26

point taken, Thanks Bruce!
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Sep 26, 2008 9:00 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Keep also in mind that the message in the DLQ might be transitory (set to expire). So depending on your business needs it might be a good practice to only send the email/page after the message(s) have been in the DLQ for more than x minutes. This way you don't logon and go to the DLQ only to find that there is no message there because it has expired....

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Dead Letter 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.