Hi,

On the front page of https://admin.microsoft.com we can see the actual Azure AD Connect synchronization status – is it possible to monitor this status, get an alert if it’s red and haven’t synchronized for X hours?


Article Comments

Hello Torben,

Thank you for your message.

I'm afraid that it's not possible to monitor AD Connect in a native way with the Microsoft 365 Service Status sensors. Nevertheless, you could write a script which will execute a request on the Graph API of Microsoft to get that information and execute it with the EXE/Script or EXE/Script Advanced sensor.

Note that depending on the sensor you use, the response returned by the script must follow the format corresponding to that sensor. You will find it in this manual: https://www.paessler.com/manuals/prtg/custom_sensors

Here are also some documentations I found regarding the API and AD Connect:

https://docs.microsoft.com/en-us/graph/api/resources/synchronization-overview?view=graph-rest-beta#synchronization-schema

https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationjob-get?view=graph-rest-beta&tabs=http

If you have questions, do not hesitate.

Regards.


Nov, 2021 - Permalink