Module: check_mk
Branch: master
Commit: 0d483da439ddba6620e2f412f01e0c8b30f82161
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0d483da439ddba…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Feb 25 18:08:59 2011 +0100
windows time: changed plugin, still not usable
---
agents/windows/plugins/windows_time.bat | 26 ++------------------------
1 files changed, 2 insertions(+), 24 deletions(-)
diff --git a/agents/windows/plugins/windows_time.bat
b/agents/windows/plugins/windows_time.bat
index bd349be..035ff7c 100644
--- a/agents/windows/plugins/windows_time.bat
+++ b/agents/windows/plugins/windows_time.bat
@@ -1,25 +1,3 @@
@echo off
-
-REM Windows time checks
-REM <fh(a)mathias-kettner.de>
-REM
-REM
-
-REM Win2008
-set W2K8 = "Microsoft Windows [Version 6.0.6002]"
-
-
-echo "<<<windows_time>>>"
-
-REM only w2k8 / vista /win7 are able to report ntp status.
-if ver = "%W2K8%" w32tm /query /status
-
-REM win2003 can _test_ the ntp server using w32tm /once, but we don't want
-REM to test EVERY minute, it takes a few seconds and will hammer the NTP server.
-REM I very much recommend to monitor for w32time errors in eventlog instead.
-
-REM all others since W2K can at least report their primary SNTP or NTP server
-REM the MS-supplied timeserver is usually blocked in corporate networks, but
-REM windows will default to it.
-net time /querysntp
-
+echo ^<^<^<windows_time^>^>^>
+w32tm /query /status