[pkg-ntp-maintainers] Bug#498992: ntp: Proposed patch

Tim Small tim at buttersideup.com
Fri Jan 16 17:31:40 UTC 2009


Package: ntp
Version: 1:4.2.4p4+dfsg-8
Followup-For: Bug #498992

The attached seems to be working on my servers.  This change makes
"kernel time sync disabled" a legitimate message.  If that's not wanted,
then "disabled" should be retained in the regex (personally, I want to
know if that's happened, others may not want to know - depends on their
network connectivity I'd guess.

Either way, the most important thing is to shut up about the status
changes ;o).

Tim.

*** /tmp/ntp.patch
--- /etc/logcheck/ignore.d.server/ntp.old	2009-01-16 17:23:21.000000000 +0000
+++ /etc/logcheck/ignore.d.server/ntp	2009-01-16 17:23:51.000000000 +0000
@@ -3,7 +3,7 @@
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ntpd\[[0-9]+\]: no servers reachable$
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ntpd\[[0-9]+\]: synchronized to ([0-9.]{7,15}|[0-9a-fA-F:.]{4,39}), stratum [0-9]+$
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ntpd\[[0-9]+\]: synchronized to LOCAL\([0-9]+\), stratum [0-9]+$
-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ntpd\[[0-9]+\]: kernel time sync (disabled|enabled) [0-9]+$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ntpd\[[0-9]+\]: kernel time sync (enabled|status( change)?) [0-9]+$
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ntpd\[[0-9]+\]: precision = [0-9]+\.[0-9]+ usec$
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ntpd\[[0-9]+\]: peer ([.0-9]{7,15}|[0-9a-fA-F:.]{4,39}) now (in)?valid$
 ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ntpd\[[0-9]+\]: adjusting local clock by -?[.0-9]+s$





More information about the pkg-ntp-maintainers mailing list