In this article I had already presented a small script that checks the Exchange HealthCheck URLs. Since I use PRTG for monitoring in my private environment, I used a separate sensor for the HealthCheck URLs. Although PRTG comes with a whole range of sensors for Exchange Server, I have to be economical with my sensors due to the limit of 100 sensors for the free version. Hence the custom sensor, which displays the HealthCheck URLs as channels within a sensor.
PRTG users can download the sensor here:
Integration of the sensor in PRTG
First, the PowerShell sensor must be copied to the PRTG sensor directory, normally the directory is located under the following path:
C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML
Now a new sensor can be added to the Exchange Server, since the script only checks the HealthCheck URLs, it does not necessarily have to be assigned directly to the Exchange Server, any other device can also use the sensor. In this example, the sensor is created directly for the Exchange Server:
"Program/Script (Advanced)" must be selected as the sensor type:
A name can now be assigned to the new sensor. The PowerShell script that was first copied to the sensor directory can now be selected under "Program/Script". The "Parameter" field is used to specify which Exchange server is to be checked. The script only processes one Exchange Server here; for several Exchange Servers, several sensors must be created or the script must be adapted accordingly:
After a short time, the sensor should deliver the first data, the value 200 corresponds to "HTTP status code 200" (everything ok). A different HTTP status code results in an error.
The individual channels can still be customized. For example, the "Unit" can be changed to "HTTP Response":
In this example, one channel of the sensor is in error status, which indicates problems with Outlook Anywhere:
If desired, the primary channel can be changed in the sensor settings; the default setting is "OWA":
Next item on my to-do list: PRTG and Sophos UTM Webserver Protection.