Author |
Message
|
ankurlodhi |
Posted: Tue Mar 20, 2012 8:04 am Post subject: How to moniter a queue manager |
|
|
Master
Joined: 19 Oct 2010 Posts: 266
|
Hi I need to write a script to monitor all the queue managers in our mq environment which is a distributed.
I have the idea of monitering it with the trace but is there any other way through which we can check the avilability of the queue manager and when ever there is a problem with the queue manager we can get an idea of the problem.
i am sure there is some but i just need some guidence and advise for what will be a better approach. as I can't use any third party tool for this. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Mar 20, 2012 8:17 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Monitoring it with trace?
You mean enabling tracing using strmqtrc?
Don't do that. It's a terrible idea.
Read the info center on Monitoring and Performance.
Then you will have a better idea of how deep a hole you're in, and you can revisit your notion of not using any 3rd party tools. |
|
Back to top |
|
 |
ankurlodhi |
Posted: Tue Mar 20, 2012 8:24 am Post subject: |
|
|
Master
Joined: 19 Oct 2010 Posts: 266
|
|
Back to top |
|
 |
PeterPotkay |
Posted: Tue Mar 20, 2012 8:31 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
There are monitoring tools where you work, things that monitor a server's CPU, or a website's availability. Go talk to the people that manage those monitoring tools your company already owns and ask them to show you what options they have for monitoring MQ. Most robust monitoring solutions deployed in Enterprises today come with MQ monitoring. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
Vitor |
Posted: Tue Mar 20, 2012 8:42 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
Don't do that. It's a terrible idea. |
mqjeff wrote: |
Read the info center on Monitoring and Performance. |
ankurlodhi wrote: |
I can't use any third party tool for this |
So your site doesn't use any 3rd party tools for monitoring system components? You're either working for a very small organization, one with a relaxed attitude to risk or one that doesn't mind if it's in business or not.
I put it to you that your site does use 3rd party tools for monitoring and as my most worthy associate points out these typically have WMQ capabilities. If someone questions why you're trying to use a tool to monitor a queue manager, ask what they use to monitor their databases. I bet that's not a script.
If you either can't or won't use a tool, follow the advice to read the InfoCenter on this. You'll then know how software houses make money selling tools; because the TCO of a 3rd party tool is less than the TCO of a RYO. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ankurlodhi |
Posted: Tue Mar 20, 2012 10:46 am Post subject: |
|
|
Master
Joined: 19 Oct 2010 Posts: 266
|
can splunk be used for MQ monitoring i have found this on webpage related to splunk as it is used in our environment.
"In this example there are forwarders for an application server, a service bus and a BPM product - a SOA tier could easily be a Web portal or a WebSphere MQ messaging system. Forwarders are lightweight - in footprint, CPU utilization and network bandwidth utilization. (Default configuration restricts bandwidth consumed to send data to an indexer to a maximum of 256 kbps). For completeness, firewall data is also shown being forwarded." |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Mar 20, 2012 11:53 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
ankurlodhi |
Posted: Wed Mar 21, 2012 5:04 am Post subject: |
|
|
Master
Joined: 19 Oct 2010 Posts: 266
|
i searched on the web and talked to the people who handle monitoring even they say we can use the logs for monitoring,
but it's not a very clear over view is there any way we can get a hold of someone who is a expert of splunk. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Mar 21, 2012 5:18 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
ankurlodhi wrote: |
is there any way we can get a hold of someone who is a expert of splunk. |
I'm sure this is possible.
I doubt that any such person reads or posts here. |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Mar 21, 2012 5:21 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
ankurlodhi wrote: |
i searched on the web and talked to the people who handle monitoring even they say we can use the logs for monitoring
|
From your research, what types of queue manager performance and state data will be found in WMQ (error) logs? _________________ 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 |
|
 |
mqjeff |
Posted: Wed Mar 21, 2012 5:36 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
bruce2359 wrote: |
ankurlodhi wrote: |
i searched on the web and talked to the people who handle monitoring even they say we can use the logs for monitoring
|
From your research, what types of queue manager performance and state data will be found in WMQ (error) logs? |
As a follow-up clarification - the WMQ Error Logs are not remotely the same things as the logs used by strmqtrc. As I said, it's a *bad* idea to use strmqmtrc for monitoring. It's a *recommended practice* to have your monitoring tools examine the WMQ Error Logs. |
|
Back to top |
|
 |
ankurlodhi |
Posted: Wed Mar 21, 2012 6:25 am Post subject: |
|
|
Master
Joined: 19 Oct 2010 Posts: 266
|
with the error logs we can also examin the event queue to keep a check on the events but i guess i will have to talk about this thing with the management and tell them the whole scene so may be they can get someone with enough knowledge of splunk to work this thing out. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Mar 21, 2012 6:39 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ankurlodhi wrote: |
with the error logs we can also examin the event queue to keep a check on the events |
Only if events are raised for the given problem. You won't see an event if one of the queue manager processes hangs.
ankurlodhi wrote: |
ut i guess i will have to talk about this thing with the management and tell them the whole scene so may be they can get someone with enough knowledge of splunk to work this thing out. |
Or they can whack your monitoring people round the head until they come up with a better way of monitoring things than scraping the logs (like whatever they're doing to monitor database and/or applications).
Or they can pay for the WMQ plug-in for whatever the monitoring people are using to monitor software when they're not scraping logs.
You'll notice on the link provided one of the answers indicates seeking a 3rd party dedicated plug in rather than splunk (which from my extensive reading (!) would still leave some monitoring gaps. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Mar 21, 2012 6:45 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
All discussions about monitoring in general are a waste of time until the objectives of the monitoring are agreed on.
That is, "monitoring" is a business function that provides business value and thus has business requirements. If management can not express those business requirements, then no meaningful monitoring is possible.
This does not mean that a well-armed systems admin will not configure a monitoring tool for their own purposes, just to ensure that they know before hand if they will get paged in the middle of the night about the business app that's broken. But it does mean that the systems admin has an entirely separate set of criteria and end-goals than most business users. Uptime is not remotely the same thing as performance metrics. |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Mar 21, 2012 8:07 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
mqjeff wrote: |
As I said, it's a *bad* idea to use strmqmtrc for monitoring. |
WMQ trace is a wonderful tool to fill up a filesystem, however. _________________ 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 |
|
 |
|