Search code examples
windows-servicesmsmq

MSMQ max count message notification


We are in process of implementing for the quick storage of the messages and process them in disconnected mode. Typical usage of any message broker.

One of the administration requirement is to send the automatic notification to administrator/developers if the queue messages (unprocessed) count reaches 1000.

  • Can it be done out of the box? If yes then how?
  • If no then do I need to write some windows service (or any sort of scheduler) to check the count every x-seconds?

Any suggestions or past experience is welcome..


Solution

  • The only (partially) built-in solution would be to set up the MSMQ Queue performance counter which gives you this information for private queues on the server.

    There are a number of other solutions, including a SCOM management pack, and some third party solutions like evtools, or you could roll you own using System.Messaging.

    Hope this is of help.