So if you don’t know about it or are looking for something, PRTG is a great and powerful network monitoring tool. I’d recommend checking it out. There’s a free trial and you can start getting details of your network in just a few short minutes thanks to their super easy setup and configuration. Now I’m not going to review PRTG because I’m sure there’s plenty of reviews already out there, but simply put they have built-in monitors/sensors that are preconfigured for what you want to monitor. Should these built-in sensors not be adequate, they have the custom external sensor. Basically, this custom sensor allows you to use your own application or script to return text or XML data back to PRTG to log and report on. That’s what this is about. A script that will monitor Exchange 2010’s transport queue and output the results to XML and set a warning based on the total count of emails in the queue. You can setup your own alerting of this sensor to email you when the “queue fills up”.
I spent part of the day yesterday looking for a good way to dump members/users of a Distribution group. No big deal except this situation has many levels of nested groups. There’s a Quest (Dell) PowerShell snapin that will do this, but why install anything else on a production server that doesn’t need to be there? I did, however, find an article for Exchange 2007 that did something like this, but when using it for 2010 it didn’t work for my needs. I just needed something simple that would work with Exchange 2010 and would run “out of box” on the server… Here’s what I came up with: