[ntp:questions] Close stats files

Danny Mayer mayer at ntp.isc.org
Sun Jan 11 19:43:53 UTC 2009


alkopedia at googlemail.com wrote:
> On Jan 10, 8:23 pm, Unruh <unruh-s... at physics.ubc.ca> wrote:
>> What version of ntp are you running? I have 4.2.4p4 and it creates a new
>> set of statistics files every day, saving the old ones in the form
>> /var/log/ntp/peerstats.20090101  /var/log/ntp/peerstats.20090106
> 
> As far as I can tell ntp creates peerstats and peerstats.20090111 at
> the same time. Both filenames are just hard links to the same file on
> the disk. If you remove peerstats.20090111 ntp will continue to write
> it's stats to peerstats. At the beginning of a new day ntp recognizes
> that peerstats.20090111 is not present and then renames peerstats to a
> backup file called peerstats.1281C0. So far so good, but the problem
> seems to be that ntp doesn't this exactly at 00:00 but at first file
> access after 00:00. The cryptostats file only gets one or two entries
> every day, so the first access to it could be much later than 00:40
> when my script moves the stats files of the last day to a fileserver.
> 
> PS: I have to to this because my ntp servers run on 1 GB SD cards and
> there is not much space for stats files ;-)
> 

If you don't need the statistics don't define them in your configuration
file. Most people don't use stats. Do you actually use them?

Danny



More information about the questions mailing list