Hello,
Using Xymon 4.3.7 the NTP test currently shows a green result if the NTP
daemon is running, and red if not. However, what we want to know is if
the NTP daemon is running, but not synchronised to any high stratum
clock. When this happens the NTP daemon will return time based on the
servers own local clock (if so configured), and this will usually be a
low stratum value (on RHEL/CentOS this is stratum 10). We don't want
this, and want to be warned if it happens.
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).
This does not work if sntp is used. I had a look at this, but it seems
that older versions of sntp did not return the stratum value. New
versions do, but as far as I can gather sntp is not usually supplied
because of licensing problems.
John.
--
John Horne Tel: +XX (X)XXXX XXXXXX
Plymouth University, UK Fax: +XX (X)XXXX XXXXXX