But I cannot get peerstats nor loopstats to save more than 10 days of

> data without erasing the 11th day.  I need to keep these files for all
> days of the year, not just the last 10. (I suspect this is an ntp
> problem)
>
> If you are proficient in setting up ntpd on a Ubuntu system, I would
> like to communicate with you and compare configurations.
>
> Thanks for considering my request.
>
> - Randall
>
>
NTP uses generation file sets and scripts for managing continuous, long
term recording of server and client timekeeping performance.

By default once the statsdir statement in ntp.conf is enabled, only daily
log files will be created.

# Enable this if you want statistics to be logged.
statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable

To have ntp stats file sets be generated on weekly, monthly and yearly
intervals that would have to specified in ntp.conf.

Monitoring Commandsfilegen *name* file *filename* [type *type*] [link |
nolink] [enable | disable]*name*Specifies the file set type from the list
in the next section.file *filename*Specfies the file set name.type *typename
*Specifies the file set interval. The following intervals are supported
with default day:noneThe file set is actually a single plain file.pidOne
file set member is created for every incarnation of ntpd. The file name
suffix is the string .n, where n is the process ID of the ntpd server
process.dayOne file set member is created per day. A day is defined as the
period between 00:00 and 23:59 UTC. The file name suffix is the string .
yyyymmdd, where yyyy is the year, mm the month of the year and dd the day
of the month. Thus, member created on 10 December 1992 would have suffix
.19921210.weekOne file set member is created per week. The week is defined
as the day of year modulo 7. The file name suffix is the string .yyyyWww,
where yyyy is the year, W stands for itself and ww the week number starting
from 0. For example, The member created on 10 January 1992 would have
suffix .1992W1.monthOne file set member is created per month. The file name
suffix is the string .yyyymm, where yyyy is the year and mm the month of
the year starting from 1. For example, The member created on 10 January
1992 would have suffix .199201.yearOne file set member is generated per
year. The file name suffix is the string .yyyy, where yyyy is the year. For
example, The member created on 1 January 1992 would have suffix .1992.ageOne
file set member is generated every 24 hours of ntpd operation. The filename
suffix is the string .adddddddd, where a stands for itself and dddddddd is
the ntpd running time in seconds at the start of the corresponding 24-hour
period.
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to