Home Directory Plugins Operating Systems Windows AD Replication Check (with performance counters from DRA)

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

AD Replication Check (with performance counters from DRA)

Current Version
Last Release Date
Compatible With
  • Nagios 3.x

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

This powershell plugin for the NSCP Client (former known as NSClient++) can be used to monitor the replication (and performance counters) from a Microsoft ActiveDirectory Domain Controller based on Windows 2008 / 2008 R2 / 2012 / 2012 R2.
This plugin monitors the domain controllers replication status with its neighbors and if the number of consecutive sync failures will be '0' (means there is no error during replication) it collects performance counters from the DRA (directory replication agent). If the sync error value is greater than '1' for any partition for any neighbor, an error will be flagged and the failed neighbor will be reported to nagios and an additional email is send out to a system administrator with more infos.

Installation / Usage:
See comment inside the powershell (*.ps1) script

Howto use:
If you are new to an Nagios & NSCP Setup you can check our the following howto: http://www.admin-enclave.com/en/articles/linux/287-nagios-core-3-x-installation-guide-on-debian-8-x-jessie.html
Reviews (5)
thanks, works fine on my Windows 2012 R2 DC.
bychris@SCI, March 10, 2014
So far, so good - I'll need to see if it will actually produce an error with replication, but I wanted to respond to the 'get-object' issue.

I also ran into that, but only on some servers. The cause? Missing NTDS performance counters. If you check the counters list on a working server, you see NTDS. If you check a non-working server, NTDS is missing. Note that 'DirectoryServices' contains the same counters.

The fix for me was as follows:
1. Export this key from the working DC: HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Performance
2. Import to the non-working DC.
3. Run: lodctr /R
4. Test

Some links...
* http://answers.splunk.com/answers/55409/not-receiving-performance-for-a-dc
* http://thwack.solarwinds.com/thread/58475
bysmarechal, December 12, 2013
1 of 1 people found this review helpful
Thanks a lot for this script!
bykamel, December 5, 2013
Thanks for this very good script.

It works perfectly for most of my servers, except for some one with whom the execution of the script return me an error.

Get-Counter : The specified object was not found on the computer.
At C:NagiosMonitoringNagiosMonitoring_AD_ReplicationCheck.ps1:208 char:41
+ $strDRAInboundBytesTotal = (Get-counter g_AD_ReplicationCheck.ps1:208 char:135
+ $strDRAInboundBytesTotal = (Get-counter -ComputerName $env:computername -Counter "NTDSDRA Inbound Bytes Total/s
bytkurek, February 13, 2013
1 of 2 people found this review helpful
Works like a charm on Windows Server 2012