Running the following query in WMI fails to return 2 queues that are active on the computer.

SELECT Name,messagesinqueue FROM Win32_PerfRawdata_MSMQ_MSMQQueue

Anyone know what could be causing this problem. I get plenty of queues listed, but missing 2 important ones that I'd like to monitor in cacti.

link|improve this question
How do you determine that they are active? Do they contain messages or are actively held open by an application? – John Breakwell May 14 '11 at 10:10
They're active because there are messages being sent to and read from the queue. – Brian May 14 '11 at 18:27
OK, that doesn't necessarily mean they are active at the moment when you want to collect data. MSMQ only maintains performance data for queues that it regards as active - ones that contain messages or are actively held open by an application. If you have an application continually listening on a queue for new messages then that would count as active. – John Breakwell May 16 '11 at 12:01
feedback

1 Answer

Problem was solved by restarting MSMQ. Apparently MSMQ doesn't register queue names with WMI while its running. Needs to be restarted before the new queues will show up.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.