On 11-04-2012 15:52, John Horne wrote:
Attached is a patch which will allow admins to specify at what stratum level the 'ntp' test should turn yellow. If the returned stratum value (from 'ntpdate') is greater than or equal to the given value, then the 'ntp' test will show yellow. If the stratum is not specified, then the ntp test uses the default behaviour (that is, no test of the stratum value).
Thanks, very nice - you even updated the documentation! Bonus points for that :-)
Unfortunately all of the "xymonnet" code is being ripped apart currently and especially the ntp tests have been completely re-done now; they no longer require any external binaries - the NTP protocol code is built-in. And the configuration files will probably change as well. But I'll make sure that the NTP stratum can also be checked in the new version.
Regards, Henrik