Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|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

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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