Problem #1 seems to be due to the fact that rawstats pertains to client/server based synchronization. I was only using a GPS clock to sync, so after adding another www based NTP server, rawstats was generated.
However I'm still unsure why peerstats does not update when the offset is outside of a certain (currently undetermined) range. In the mean time I think I'll just write a script that records the offset from ntpq -p and logs it into a file once every few seconds. However I really want to pull this information from peerstats. > 2 troubling concerns: > > 1) NTP's 'rawstats' file fails to write (or even be created). Oddly, > peerstats, loopstats, clockstats, and sysstats all write and update as > expected. Please see my ntp.conf file at the bottom of this message. I > don't believe that the config file is the problem, but maybe I'm wrong. > > 2) Peerstats updates in a bizarre fashion. If the system time is close to > my reference time (GPS/PPS), then it updates every 16 seconds as indicated > by the 'poll' field that I see with the 'ntpq -p' command. However when I > manually fudge the system time by X minutes using the 'date' command, > peerstats will not update itself for X minutes. Once X minutes have > passed, the offset is sub-millisecond, and peerstats will resume logging > its results ever 16 seconds. > > My goal is to monitor the offset after I manually fudge the system time, > to see the rate that NTP adjusts system time. Oddly, peerstats will not > update if I fudge the system time by -5 minutes, and rawstats fails to > write at all. > > At the very least, this gives me a chance to document my thoughts. Any > opinions on this behavior are greatly appreciated. > > /etc/ntp.conf: > *********************************************************** > ftfile /var/log/ntpstats/drift > logfile /var/log/ntpstats/xntpd > statsdir /var/log/ntpstats/ > > enable stats > > statistics loopstats peerstats clockstats sysstats rawstats > #statistics rawstats > filegen rawstats file rawstats1 type dat enable > filegen loopstats file loopstats type day enable > filegen peerstats file peerstats type day enable > filegen clockstats file clockstats type day enable > filegen sysstats file sysstats type day enable > filegen rawstats file rawstats type day enable > > enable kernel > > server 127.127.1.0 # Local clock > fudge 127.127.1.0 stratum 8 # Local stratum > > server 127.127.30.0 prefer # GPS clock > ************************************************************ > _______________________________________________ > pool mailing list > [email protected] > http://lists.ntp.org/listinfo/pool > _______________________________________________ pool mailing list [email protected] http://lists.ntp.org/listinfo/pool
