Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
AD Replication Check (with performance counters from DRA)
1.1
2016-03-20
- Nagios 3.x
GPL
95978
File | Description |
---|---|
NagiosMonitoring_AD_ReplicationCheck.ps1 | NagiosMonitoring_AD_ReplicationCheck.ps1 |
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 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
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)
byBerndWebster, February 14, 2017
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
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
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[
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