<p>Wow!  Great work!  Thank you for sharing.</p>
<p>Josh Luthman<br>
Office: 937-552-2340<br>
Direct: 937-552-2343<br>
1100 Wayne St<br>
Suite 1337<br>
Troy, OH 45373</p>
<div class="gmail_quote">On Apr 11, 2012 9:52 AM, "John Horne" <<a href="mailto:john.horne@plymouth.ac.uk">john.horne@plymouth.ac.uk</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
Using Xymon 4.3.7 the NTP test currently shows a green result if the NTP<br>
daemon is running, and red if not. However, what we want to know is if<br>
the NTP daemon is running, but not synchronised to any high stratum<br>
clock. When this happens the NTP daemon will return time based on the<br>
servers own local clock (if so configured), and this will usually be a<br>
low stratum value (on RHEL/CentOS this is stratum 10). We don't want<br>
this, and want to be warned if it happens.<br>
<br>
Attached is a patch which will allow admins to specify at what stratum<br>
level the 'ntp' test should turn yellow. If the returned stratum value<br>
(from 'ntpdate') is greater than or equal to the given value, then the<br>
'ntp' test will show yellow.  If the stratum is not specified, then the<br>
ntp test uses the default behaviour (that is, no test of the stratum<br>
value).<br>
<br>
This does not work if sntp is used. I had a look at this, but it seems<br>
that older versions of sntp did not return the stratum value. New<br>
versions do, but as far as I can gather sntp is not usually supplied<br>
because of licensing problems.<br>
<br>
<br>
<br>
<br>
John.<br>
<br>
--<br>
John Horne                   Tel: <a href="tel:%2B44%20%280%291752%20587287" value="+441752587287">+44 (0)1752 587287</a><br>
Plymouth University, UK      Fax: <a href="tel:%2B44%20%280%291752%20587001" value="+441752587001">+44 (0)1752 587001</a><br>
<br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div>