Nagios – Checking the Time on Windows Machines
If we want to check the time we have between a Windows machine and the time that its Active Directory has, This is your document! We will be able to check with the following script the time difference in milliseconds that we have, is super useful to check a service as critical as the Time, and that all our machines have it perfectly synchronized!