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

Login

Remember Me

Directory Tree

AD Replication Check (with performance counters from DRA)

Current Version
1.1
Last Release Date
2016-03-20
Compatible With
  • Nagios 3.x
License
GPL
Hits
95824
Files:
FileDescription
NagiosMonitoring_AD_ReplicationCheck.ps1NagiosMonitoring_AD_ReplicationCheck.ps1
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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
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[
bytkurek, February 13, 2013
1 of 2 people found this review helpful
Works like a charm on Windows Server 2012