| Author |
Message |
Glenn Wilson
Guest
|
Posted:
Fri Dec 31, 2004 5:43 am Post subject:
Looking for a Script or Method to monitor MSMQ |
|
|
I have a system that has a Message queue configured, We want to alert if the
number of messages in that queue goes above a threeshold. Has anyone got a
script or information on how to configure this. |
|
| Back to top |
|
 |
Glenn Wilson
Guest
|
Posted:
Fri Dec 31, 2004 6:13 am Post subject:
RE: Looking for a Script or Method to monitor MSMQ |
|
|
Found the first part, Each MSMQ that is created creates and instance in the
MSMQ Queues performance counters.
Now I need a way to configure this so that I can create a rull that will
check for the threeshold. I know I can set it up using a rule group, But how
can I make this dynamic so that the rule can be created to monitor the
message queue in question as it is installed on several computers.
ie. Queue name is TestQueue
and queue in perfmon is \\machine01\private$\TestQueue
"Glenn Wilson" wrote:
| Quote: | I have a system that has a Message queue configured, We want to alert if the
number of messages in that queue goes above a threeshold. Has anyone got a
script or information on how to configure this. |
|
|
| Back to top |
|
 |
Rory
Guest
|
Posted:
Fri Dec 31, 2004 11:35 pm Post subject:
Re: Looking for a Script or Method to monitor MSMQ |
|
|
Have you looked in the MSMQ MP for an existing rule that you could create a
copy of and modify or thought about using the Rule Wizard in the MOM 2005
resource kit. I haven't worked with the MSMQ MP so I don't know off hand if
such a rule exists but it's worth a look before recreating the wheel.
Rory
"Glenn Wilson" <GlennWilson@discussions.microsoft.com> wrote in message
news:1FA97B10-6E28-4542-B749-8E89F899F9E2@microsoft.com...
| Quote: | Found the first part, Each MSMQ that is created creates and instance in
the
MSMQ Queues performance counters.
Now I need a way to configure this so that I can create a rull that will
check for the threeshold. I know I can set it up using a rule group, But
how
can I make this dynamic so that the rule can be created to monitor the
message queue in question as it is installed on several computers.
ie. Queue name is TestQueue
and queue in perfmon is \\machine01\private$\TestQueue
"Glenn Wilson" wrote:
I have a system that has a Message queue configured, We want to alert if
the
number of messages in that queue goes above a threeshold. Has anyone got
a
script or information on how to configure this. |
|
|
| Back to top |
|
 |
Don Cameron
Guest
|
Posted:
Fri Jan 07, 2005 10:02 pm Post subject:
Re: Looking for a Script or Method to monitor MSMQ |
|
|
All you need to do is create a computer group and accompanying rule
group for the machines you want to monitor. Then, create a new threshold
rule to monitor the number of messages in the queue and tell it to match
all instances that contain the name of that particular queue (i.e.
"TestQueue").
HTH.
--Don
Rory wrote:
| Quote: | Have you looked in the MSMQ MP for an existing rule that you could create a
copy of and modify or thought about using the Rule Wizard in the MOM 2005
resource kit. I haven't worked with the MSMQ MP so I don't know off hand if
such a rule exists but it's worth a look before recreating the wheel.
Rory
"Glenn Wilson" <GlennWilson@discussions.microsoft.com> wrote in message
news:1FA97B10-6E28-4542-B749-8E89F899F9E2@microsoft.com...
Found the first part, Each MSMQ that is created creates and instance in
the
MSMQ Queues performance counters.
Now I need a way to configure this so that I can create a rull that will
check for the threeshold. I know I can set it up using a rule group, But
how
can I make this dynamic so that the rule can be created to monitor the
message queue in question as it is installed on several computers.
ie. Queue name is TestQueue
and queue in perfmon is \\machine01\private$\TestQueue
"Glenn Wilson" wrote:
I have a system that has a Message queue configured, We want to alert if
the
number of messages in that queue goes above a threeshold. Has anyone got
a
script or information on how to configure this.
|
|
|
| Back to top |
|
 |
Gerald
Guest
|
Posted:
Sat Jan 08, 2005 5:46 am Post subject:
Re: Looking for a Script or Method to monitor MSMQ |
|
|
I have a script I use to monitor MSMQ. I have been using it for a view
months now. If you want to see it I will send it to you.
Gerald |
|
| Back to top |
|
 |
Michiel Dulfer
Guest
|
Posted:
Tue Jan 11, 2005 9:26 pm Post subject:
Re: Looking for a Script or Method to monitor MSMQ |
|
|
Much better then monitoring the amount of messages in a queue is to see if
messages are being taken out again. (handled)
I have a script that checks the ID of the first message, stores it, and in
the next run compares it to the ID of the message that is now first in the
queue. If these ID's are the same, my handler (service that handles messages
from the queue) is not functioning properly.
One problem you'll run into is that the ID of the message is exposed as a
bytearray, and VBscript cannot handle this, you'll need to write some C#
code to convert the bytearray to a string (I had a colleague do it :)
Good Luck!
Michiel Dulfer
"Glenn Wilson" <GlennWilson@discussions.microsoft.com> wrote in message
news:C01DBF5A-D537-47BF-8ADD-B7F02CB9945F@microsoft.com...
| Quote: | I have a system that has a Message queue configured, We want to alert if
the
number of messages in that queue goes above a threeshold. Has anyone got a
script or information on how to configure this. |
|
|
| Back to top |
|
 |
|
|
|
|