Author |
Message
|
wild_bill |
Posted: Tue Jul 05, 2011 9:07 am Post subject: Monitor channel status |
|
|
Newbie
Joined: 05 Jul 2011 Posts: 3
|
We are using WebSphere MQ 5.3 running on Windows 2000. We have a single queue mananger with a Reciever channel and a sender channel. I would like an email be sent when the channel status is not "Running". Is there built in functionality for this type of monitoring? I have also developed a windows service in .NET that gets/puts messages onto various queues. I could add channel monitoring here, but I have not run across any sample code that details how to get a channel's status. My questions are, should I try to utilize some built in functionality or take advantage of the .NET API. In either case samples or documentation would be great. Thanks. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jul 05, 2011 9:29 am Post subject: Re: Monitor channel status |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
wild_bill wrote: |
I would like an email be sent when the channel status is not "Running". |
No you wouldn't. A correctly configured channel will fill your inbox when it goes "Inactive".
wild_bill wrote: |
Is there built in functionality for this type of monitoring? |
No, because there is built in functionality to recover from the majority of channel problems.
wild_bill wrote: |
I have not run across any sample code that details how to get a channel's status. |
You're talking about issuing a PCF command.
wild_bill wrote: |
My questions are, should I try to utilize some built in functionality or take advantage of the .NET API. |
AFAIK (and that's not very far) the .NET API does not officially support PCF commands. But you'll find a number of potentially useful posts in here from people who have attempted it with varying degrees of success (if it worked first time & easily, they wouldn't have posted here......) _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jul 05, 2011 9:31 am Post subject: Re: Monitor channel status |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
wild_bill wrote: |
We are using WebSphere MQ 5.3 running on Windows 2000. |
A separate issue is that version of WMQ is both old & out of support. So I'm unconvinced that it supports the dodges used to issue PCF with .NET.
For this and a multitude of other reasons, upgrade to WMQv7. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
wild_bill |
Posted: Tue Jul 05, 2011 9:31 am Post subject: |
|
|
Newbie
Joined: 05 Jul 2011 Posts: 3
|
Thank you for your response, I will research PCF commands. |
|
Back to top |
|
 |
shashivarungupta |
Posted: Tue Jul 05, 2011 9:39 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
wild_bill wrote: |
We are using WebSphere MQ 5.3 running |
First upgrade it to the latest version of mq ( if you can ).
wild_bill wrote: |
I would like an email be sent when the channel status is not "Running". |
You can have a script written and scheduled it. Or you can have a monitoring tool setup and set a condition accordingly. _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
 |
shashivarungupta |
Posted: Tue Jul 05, 2011 9:53 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
wild_bill wrote: |
...how to get a channel's status... |
Please refer link (where you can see many options to Monitor all other Websphere MQ Objects NOT just the "channels" )
[EDIT]
Another link has lots of information for you, to Monitor channel status and troubleshooting (though its bit an old post But not older then the version of mq you are using)
 _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Tue Jul 05, 2011 12:43 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
The company that relies on this server, hopefully, has extensive monitoring in place across the enterprise. Check with the team that supports that monitoring. Odds are they have some MQ monitoring capability already in house. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
gbaddeley |
Posted: Tue Jul 05, 2011 3:52 pm Post subject: Re: Monitor channel status |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
wild_bill wrote: |
.. I would like an email be sent when the channel status is not "Running". |
What do you hope to gain by receiving these emails?
It is quite normal for channel status to be running or inactive, or to be in other states for short periods of time.
It might be more useful to monitor the depth of the transmission queues. _________________ Glenn |
|
Back to top |
|
 |
shashivarungupta |
Posted: Tue Jul 05, 2011 8:12 pm Post subject: Re: Monitor channel status |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
gbaddeley wrote: |
wild_bill wrote: |
.. I would like an email be sent when the channel status is not "Running". |
What do you hope to gain by receiving these emails?
It is quite normal for channel status to be running or inactive, or to be in other states for short periods of time.
It might be more useful to monitor the depth of the transmission queues. |
Agree...and if that (xmitq) piles up then the depth of DLQ ! (when appls are not aware of POC is going on ) what if DLQ is full ? What if DLQ Handler is not in place ?  _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
 |
wild_bill |
Posted: Wed Jul 06, 2011 7:06 am Post subject: |
|
|
Newbie
Joined: 05 Jul 2011 Posts: 3
|
PeterPotkay wrote: |
The company that relies on this server, hopefully, has extensive monitoring in place across the enterprise. Check with the team that supports that monitoring. Odds are they have some MQ monitoring capability already in house. |
I checked there first, no luck unfortunatly.
gbaddeley wrote: |
wild_bill wrote: |
.. I would like an email be sent when the channel status is not "Running". |
What do you hope to gain by receiving these emails?
It is quite normal for channel status to be running or inactive, or to be in other states for short periods of time.
It might be more useful to monitor the depth of the transmission queues. |
I think this is the direction I will be going, thanks for your suggestion. |
|
Back to top |
|
 |
|