Package: ntpsec
Version: 1.2.2+dfsg1-1+deb12u1
Severity: normal
X-Debbugs-Cc: [email protected]

Dear Maintainer,

I was centralizing logging recently and have been delinting my syslog(s).  
I noticed the following frequently repeating pattern

    2025-08-25T20:50:01.874794+00:00 tera003 CRON[908057]: (root) CMD (if [ ! 
-d /run/systemd/system ] && [ -x /usr/sbin/ntplogtemp ] ; then 
/usr/sbin/ntplogtemp -o -l /var/log/ntpsec/temps ; fi)
    2025-08-25T20:53:22.138293+00:00 tera003 systemd[1]: Started 
ntplogtemp.service - Temperature information logger for ntpviz.
    2025-08-25T20:53:23.802596+00:00 tera003 systemd[1]: ntplogtemp.service: 
Deactivated successfully.

Checking /etc/cron.d/ntpsec-ntpviz , I find
    */5 *    * * * root if [ ! -d /run/systemd/system ] && [ -x 
/usr/sbin/ntplogtemp
 ] ; then /usr/sbin/ntplogtemp -o -l /var/log/ntpsec/temps ; fi

This is an odd way to use ntplogtemp because the -o option causes the 
observed chatty log behaviour every 5 minutes.  However, the -w 300 option 
should cause a running instance of ntplogtemp to log every 5 minutes 
without as much syslog traffic.

Maybe ntplogtemp should be set up as a system service (and use its internal 
timing to set logging frequency) to eliminate this stream of syslog traffic.


-- System Information:
Debian Release: 12.11
  APT prefers stable
  APT policy: (900, 'stable'), (500, 'testing-security'), (500, 
'stable-updates'), (500, 'stable-security'), (400, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-35-amd64 (SMP w/48 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ntpsec depends on:
ii  adduser                    3.134
ii  init-system-helpers        1.65.2
ii  libbsd0                    0.11.7-2
ii  libc6                      2.36-9+deb12u10
ii  libcap2                    1:2.66-4+deb12u1
ii  libssl3                    3.0.16-1~deb12u1
ii  lsb-base                   11.6
ii  netbase                    6.4
ii  python3                    3.11.2-1+b1
ii  python3-ntp                1.2.2+dfsg1-1+deb12u1
ii  sysvinit-utils [lsb-base]  3.06-4
ii  tzdata                     2025b-0+deb12u1

Versions of packages ntpsec recommends:
ii  cron [cron-daemon]  3.0pl1-162
ii  systemd             252.36-1~deb12u1

Versions of packages ntpsec suggests:
ii  apparmor       3.0.8-3
pn  certbot        <none>
ii  ntpsec-doc     1.2.2+dfsg1-1+deb12u1
pn  ntpsec-ntpviz  <none>

-- Configuration Files:
/etc/ntpsec/ntp.conf changed:
driftfile /var/lib/ntpsec/ntp.drift
leapfile /usr/share/zoneinfo/leap-seconds.list
server 127.127.1.1
fudge 127.127.1.1 stratum 12
tos orphan 8
tos maxclock 11
tos minclock 4 minsane 3
server time.weirdhouse.fuzzy prefer burst iburst minpoll 4 maxpoll 6
restrict default kod nomodify nopeer noquery limited
restrict 10.255.1.0 mask 255.255.255.0 kod notrap nomodify nopeer
restrict 127.0.0.1
restrict ::1


-- no debconf information

Reply via email to