Module: check_mk
Branch: master
Commit: 94bfb0088e995f927f4253b5e3d9da57c9487fa2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=94bfb0088e995f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Apr 15 16:16:10 2011 +0200
FIX: ad_replication.bat only generates output on domain controllers now.
This is useful to prevent checks on non DC hosts which have the
admin/support tools and the ad_replication.bat agent plugin installed
(Thanks to Alex Greenwood)
---
ChangeLog | 2 ++
agents/windows/plugins/ad_replication.bat | 3 ++-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4af0d59..fb18576 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -87,6 +87,8 @@
* mcdata_fcport: new check for ports of MCData FC Switches
* hp_procurve_cpu: add PNP template
* hp_procurve_cpu: rename load to utilization, rename service to CPU utilizition
+ * FIX: ad_replication.bat only generates output on domain controllers now.
+ This is useful to prevent checks on non DC hosts (Thanks to Alex Greenwood)
1.1.10:
Core, Setup, etc.:
diff --git a/agents/windows/plugins/ad_replication.bat
b/agents/windows/plugins/ad_replication.bat
index d41722c..bdaa64a 100644
--- a/agents/windows/plugins/ad_replication.bat
+++ b/agents/windows/plugins/ad_replication.bat
@@ -15,4 +15,5 @@ REM *
REM ***
echo ^<^<^<ad_replication^>^>^>
-repadmin /showrepl /csv
+dsquery server | find /I "CN=%COMPTERNAME%," > nul
+if ERRORLEVEL 0 repadmin /showrepl /csv