Author |
Message
|
Jegadeeshwaran |
Posted: Thu Apr 11, 2013 3:18 am Post subject: MQ Omegamon Situation for Put time or Put Rate |
|
|
Newbie
Joined: 20 Mar 2013 Posts: 5
|
Hi ,
I am new to MQ & Omegamon, I need to setup a omegamon situation which should monitor a queue and generate an alert if there is no message put on that queue for given period of time ( for example 2 minutes).
Any help on this formula would be great.
Thank you. |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Apr 11, 2013 4:01 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Have you searched here or google for 'omegamon monitoring queue depth'? Then what happened? _________________ 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 |
|
 |
Jegadeeshwaran |
Posted: Thu Apr 11, 2013 4:06 am Post subject: |
|
|
Newbie
Joined: 20 Mar 2013 Posts: 5
|
bruce2359 wrote: |
Have you searched here or google for 'omegamon monitoring queue depth'? Then what happened?[
|
Hi Thanks for the reply. Sorry I have not given enough detail in my question. Messages won't stay in that queue. An application get the message as when it arrives. So I can't rely on queue depth in my situation. |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Apr 11, 2013 4:11 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
I'm asking you what research and testing you have done prior to posting here? _________________ 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 |
|
 |
nathanw |
Posted: Thu Apr 11, 2013 4:14 am Post subject: |
|
|
 Knight
Joined: 14 Jul 2004 Posts: 550
|
The last put time is stored on the queue therefore even if the message is read straightaway it will have a time associated with it.
So the answer is out there _________________ Who is General Failure and why is he reading my hard drive?
Artificial Intelligence stands no chance against Natural Stupidity.
Only the User Trace Speaks The Truth  |
|
Back to top |
|
 |
Jegadeeshwaran |
Posted: Fri Apr 12, 2013 4:58 am Post subject: |
|
|
Newbie
Joined: 20 Mar 2013 Posts: 5
|
Hi Nathanw,
Yes, I tried but I am not sure how to use it in situation formula to compare against current time?
For example, My sample interval time is 2 minutes,
say the last put time 10:00am , at 10:01am the situation should not generate alert but at 10:03am it should alert as there is no messages put for the past 3 minutes.
I've noticed that I can use Msgs Put/Msgs Get but for some reason, they always return zero even if I enable Queue Statistics in agents. |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Apr 12, 2013 5:36 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Jegadeeshwaran wrote: |
I've noticed that I can use Msgs Put/Msgs Get but for some reason, they always return zero even if I enable Queue Statistics in agents. |
How did you notice? What is 'they' that gives you return code zero?
Please be precise in your posts. _________________ 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 |
|
 |
Jegadeeshwaran |
Posted: Fri Apr 12, 2013 5:44 am Post subject: |
|
|
Newbie
Joined: 20 Mar 2013 Posts: 5
|
"Msgs Put" Queue Statistics attribute always return value as zero instead of actual count of the messages put in that queue during sampling interval.
I see these values in Omegamon Queue Statistics View. |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Apr 12, 2013 5:55 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Jegadeeshwaran wrote: |
I see these values in Omegamon Queue Statistics View. |
Do you see the same results when you use the equivalent MQSC DISPLAY command? _________________ 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 |
|
 |
Jegadeeshwaran |
Posted: Fri Apr 12, 2013 6:56 am Post subject: |
|
|
Newbie
Joined: 20 Mar 2013 Posts: 5
|
Hi,
What is the equivalent display command to view queue statistics attributes?
DISPLAY QSTATUS() - Shows Last put time & Get time, but it does not show other attributes ( Msgs Read, Msgs Put, Put Rate, Get Rate) listed in Omegamon statistics view. |
|
Back to top |
|
 |
colbype |
Posted: Sun Jun 16, 2013 6:15 pm Post subject: Solution |
|
|
Novice
Joined: 13 Jan 2009 Posts: 23
|
Jegadeeshwaran,
You have to turn on Queue Monitoring via MQ ( like Explorer) before Omegamon can pick up the attributes. Once you do that you will notice if you look at Queue Statistics it will show the last put and get time.
here is a formula to get what you want. For Local Time you use the Delta which allows + or - compare with Queue Name.
( TIME(Last Put Date & Time) < '#'Local_Time.Timestamp' - 3H' AND Queue Name == PMC.PKMS.contact admin.MANUAL.TRIGGER.LOCAL)
Good luck |
|
Back to top |
|
 |
|