Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check_SNTP_OffSet
This plugin will perform a simple synchronization between a Windows 2000 machine and a NTP Server to derive the OffSet,
To make installation simple it's just a ".bat" file that is basically a glorified Nagios wrapper for w32tm. Tested on Windows 2000,
A windows Domain Controller can used as a Time Source as well as an other NTP servers,
Uses:
Developed For SNTP/Windows2000, For the old version of w32tm,
Install:
Copy the script "Check_SNTP_OffSet.bat" to your "NSClient++" /scripts folder on the Windows Machine,
Define the script in your "nsc.ini" file on the Windows Machine, Don't forget to enable command arguments if you wish to pass the ntp source and other arguments from check_nrpe,
Restart your "NSClient++" service on the Windows Machine,
Loacal/Remote Check like "Usage Section" below
Usage: Check_SNTP_OffSet.bat NTPServer Warning Critical
* Warning and Critical in Seconds
From My_Host:
C:>Check_SNTP_OffSet.bat www.NTPServer.ma 30 50
OK: Time is -02.056214s from www.NTPServer.ma|'Offset'=02s;30;50;0
From Nagios Server:
$ /usr/local/nagios/libexec/check_nrpe -H My_Host -c Check_SNTP_OffSet
OK: Time is -02.056214s from www.NTPServer.ma|'Offset'=02s;30;50;0
NB: Based Of "Check_Windows_Time.bat"
To make installation simple it's just a ".bat" file that is basically a glorified Nagios wrapper for w32tm. Tested on Windows 2000,
A windows Domain Controller can used as a Time Source as well as an other NTP servers,
Uses:
Developed For SNTP/Windows2000, For the old version of w32tm,
Install:
Copy the script "Check_SNTP_OffSet.bat" to your "NSClient++" /scripts folder on the Windows Machine,
Define the script in your "nsc.ini" file on the Windows Machine, Don't forget to enable command arguments if you wish to pass the ntp source and other arguments from check_nrpe,
Restart your "NSClient++" service on the Windows Machine,
Loacal/Remote Check like "Usage Section" below
Usage: Check_SNTP_OffSet.bat NTPServer Warning Critical
* Warning and Critical in Seconds
From My_Host:
C:>Check_SNTP_OffSet.bat www.NTPServer.ma 30 50
OK: Time is -02.056214s from www.NTPServer.ma|'Offset'=02s;30;50;0
From Nagios Server:
$ /usr/local/nagios/libexec/check_nrpe -H My_Host -c Check_SNTP_OffSet
OK: Time is -02.056214s from www.NTPServer.ma|'Offset'=02s;30;50;0
NB: Based Of "Check_Windows_Time.bat"
Reviews (0)
Be the first to review this listing!