Author |
Message
|
basabi2520 |
Posted: Tue Jun 26, 2012 1:09 am Post subject: Create alert on queue manager full |
|
|
 Apprentice
Joined: 05 Jun 2012 Posts: 28 Location: singapore
|
Hi ,
Am new to MQ . My task is to get an alert like mail when queue manager is nearing 80% . Listed out some points according to my understanding:
1. Enable queue event
ALTER QMGR PERFMEV(ENABLED)
ALTER QLOCAL('MYQUEUE') QDEPTHHI(80) QDPHIEV(ENABLED)
2. When the queue reaches 80% and will be returned to the following :
SYSTEM.ADMIN.QMGR.EVENT
my question is how to trigger an alert to know the queu reaches 80%. Do we need to write an user application to get an alert? or is there any default commands or functions?
Need some of your guidlines and suggestions in which way i need to continue. Refered some manuals couldnt understand properly. Also if there is any previous post pls give the link  |
|
Back to top |
|
 |
exerk |
Posted: Tue Jun 26, 2012 1:27 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
COTS monitoring solutions, e.g. Tivoli, BMC Patrol (as was), or Auto-Pilot, will do it for you. Additionally, such tools will automate actions to prevent a queue full condition - bear in mind latency between the alert reaching you and what has happened to queue depth during that time.
You could write something that scrapes the messages from the event queue and sends an email, but why reinvent the wheel? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
basabi2520 |
Posted: Tue Jun 26, 2012 10:13 pm Post subject: |
|
|
 Apprentice
Joined: 05 Jun 2012 Posts: 28 Location: singapore
|
thanks for your reply . But still need more appropriate answer. Will appreciate if you could explain in better way . thanks a lot . |
|
Back to top |
|
 |
Mr Butcher |
Posted: Wed Jun 27, 2012 12:05 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
you will receive event messages for the proper events in a queue. its up to you to handle them (write your own event msg handling application), or use a tool that already exists (as already suggested) _________________ Regards, Butcher |
|
Back to top |
|
 |
basabi2520 |
Posted: Wed Jun 27, 2012 12:17 am Post subject: |
|
|
 Apprentice
Joined: 05 Jun 2012 Posts: 28 Location: singapore
|
Hi exerk & Butcher,
Thanks for your reply. Writing a java application to handle the events. Will disturb you again if i hav any queries . thanks once again |
|
Back to top |
|
 |
zpat |
Posted: Thu Jun 28, 2012 5:15 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
|
Back to top |
|
 |
mqjeff |
Posted: Thu Jun 28, 2012 5:17 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Lots of things *can* do it for "free".
A homebrew app might be the cheapest free solution in this case. |
|
Back to top |
|
 |
zpat |
Posted: Thu Jun 28, 2012 12:55 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
MO71 has an event message handler, that can run commands, forward the messages to another queue - all sorts of stuff. Even has a console/status interface - all that would take a fair time to code.
Of course if you don't need any of that - fair enough. |
|
Back to top |
|
 |
|