Windows time check against NTPD

check_time

check_time

Check time offset of a Windows server against NTPD server(s).

If multiple servers are specified (use commas only, not spaces), all will be querried and only succesfull offset results will be processed.
By default the least offset is selected. This can be modified with the option "biggest"

Sysnopsis:

cscript /NoLogo check_time.vbs serverlist warn crit [biggest]

Options:

The options all have the hard order and all but the last one are required.

ParameterDescription
serverlist (required):one or more server names, coma-separated
warn  (required):warning offset in seconds, can be partial
crit  (required):critical offset in seconds, can be partial
biggest (optional):if multiple servers, else use default least offset

Example:

and a nsc.ini entry looks like:

command[check_ntp_time]=cscript.exe /T:30 /NoLogo check_time.vbs server1,server2,server3 20 240