WMI missing MSMQ queue name

msmqwmi

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.

Best 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.