<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello Lyle,<br>
    <br>
    if the target system has a webserver running, you can use this
    plugin (bash script) of mine.<br>
    <br>
    usage: ./check_time_deviation_via_http.sh <url>
    <repetitions> <warning threshold> <critical
    threshold><br>
    <br>
    Examples:<br>
    <br>
    cray@denkbrett:~$ ./check_time_deviation_via_http.sh
    <a class="moz-txt-link-rfc2396E" href="http://www.nagios.com">"http://www.nagios.com"</a> 4 2 10; echo $?<br>
    OK: time deviation 0 is within the range of 2
    seconds|time_deviation=0<br>
    0<br>
    <br>
    cray@denkbrett:~$ ./check_time_deviation_via_http.sh
    <a class="moz-txt-link-rfc2396E" href="http://www.winnetou.com">"http://www.winnetou.com"</a> 4 2 10; echo $?<br>
    CRITICAL: time deviation 28730 is more than 10 seconds
    off|time_deviation=28730<br>
    2<br>
    <br>
    (Proof that Winnetou is still ahead of his time)<br>
    <br>
    Regards<br>
    - Robert<br>
    <br>
    <br>
    On 19/01/12 21:28, Lylex Ryan wrote:
    <blockquote
      cite="mid:1327004901.89529.YahooMailNeo@web125406.mail.ne1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:times
        new roman, new york, times, serif;font-size:12pt">
        <div><span>Thanks to all who replied.    I couldn't get the
            suggested check_time.vbs to work, perhaps because I needed
            an NTP client.  But that led me to check_ad_time.vbs which
            checks Windows time against the domain controller.  Seems to
            be working well.</span></div>
        <div><br>
          <span></span></div>
        <div><span>....Lyle<br>
          </span></div>
        <div><br>
        </div>
        <div style="font-family: times new roman,new york,times,serif;
          font-size: 12pt;">
          <div style="font-family: times new roman,new york,times,serif;
            font-size: 12pt;">
            <div dir="ltr"> <font face="Arial" size="2"> -----
                Forwarded Message -----<br>
                <b><span style="font-weight: bold;">From:</span></b>
                Lylex Ryan <a class="moz-txt-link-rfc2396E" href="mailto:lylexryan@yahoo.com"><lylexryan@yahoo.com></a><br>
                <b><span style="font-weight: bold;">To:</span></b>
                <a class="moz-txt-link-abbreviated" href="mailto:nagiosplug-help@lists.sourceforge.net">nagiosplug-help@lists.sourceforge.net</a> <br>
                <b><span style="font-weight: bold;">Sent:</span></b>
                Wednesday, January 18, 2012 4:59 PM<br>
                <b><span style="font-weight: bold;">Subject:</span></b>
                how to confirm that time is within limits on Windows
                server?<br>
              </font> </div>
            <br>
            <div id="yiv787134394">
              <table border="0" cellpadding="0" cellspacing="0">
                <tbody>
                  <tr>
                    <td style="font: inherit;" valign="top">We've been
                      bitten badly recently with time being way off on
                      Windows 2003 & 2008 servers.  I was checking
                      that the ntp client service was running, which it
                      was, but the actual time on the server was way
                      off.<br>
                      <br>
                      How can I check that the actual time is within
                      tolerance compared to either the Domain Controller
                      or the Nagios server?<br>
                      <br>
                      We've given up on running the Windows NTP client,
                      and now run the Windows Time service against the
                      Domain Controllers.<br>
                      <br>
                      I looked at <a moz-do-not-send="true"
                        target="_blank" href="http://check_daytime.pl">check_daytime.pl</a>
                      on the Nagios server side, but it doesn't look
                      like we're about to install Simple TCP/IP Service
                      for security and other reasons.<br>
                      <br>
                      Thanks for any advice....Lyle Ryan <br>
                    </td>
                  </tr>
                </tbody>
              </table>
            </div>
            <br>
            <br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
<a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/learndevnow-d2d">http://p.sf.net/sfu/learndevnow-d2d</a></pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Nagiosplug-help mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a>
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
</pre>
    </blockquote>
    <br>
  </body>
</html>