Home Directory Plugins Cloud Local AD check for Azure AD Synchronization

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com


Remember Me

Directory Tree

Local AD check for Azure AD Synchronization

0 votes
Current Version
Last Release Date
Compatible With
  • Nagios 4.x
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
A simple script which checks the local server that Azure AD Connect runs on for the following:

* Time since successful synchronization with Azure AD
* Time since successful password synchronization with Azure AD
* Errors in event log indicating problems with synchronization

1: [Int] $allowedMinutesSinceSync (Default: 90): Time (in minutes) since last successful synchronization before a critical alert is raised.
2: [bool] $disableOutput (Default: $false): Toggles the status of $disableOutput and determines whether the script should generate any output.
3: [bool] $checkPasswordSync (Default: $true) Toggles whether password synchronization is synchronized between local AD and AAD.

The checks are performed using the following powershell commands:
* Get-ADSyncPartitionPasswordSyncState
* Get-ADSyncScheduler
* Get-WinEvent

The script has only been tested using NSClient++ on Windows 2016 servers and Nagios Core 4.4.5 and the check_nrpe command.