Windows

AD Replication Check (with performance counters from DRA)

Description:

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.

Current Version

1.1

Last Release Date

2016-03-20

Compatible With

  • Nagios 3.x

Owner

License

GPL


Project Files
Project Photos
Project Notes
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) Add a Review
Works fine on Windows 2012 R2
by BerndWebster, February 28, 2017

thanks, works fine on my Windows 2012 R2 DC.



Works as advertised
by chris@SCI, March 31, 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: HKLMSYSTEMCurrentControlSetServicesNTDSPerformance 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



Works on 2012
by smarechal, December 31, 2013

Thanks a lot for this script!



PowerShelle script error
by kamel, December 31, 2013

Hello, 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 ec").countersamples[



Works like a charm on Windows Server 2012
by tkurek, February 28, 2013

Works like a charm on Windows Server 2012



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4.9 (15)
Favorites
5
Views
95,932