Blame SOURCES/logwatch-xntpd.patch

aa46a8
Update ntpd log parsing.
aa46a8
aa46a8
RH-Bugzilla: #673756
aa46a8
aa46a8
Index: scripts/services/xntpd
aa46a8
===================================================================
aa46a8
--- scripts/services/xntpd	(revision 85)
aa46a8
+++ scripts/services/xntpd	(working copy)
aa46a8
@@ -142,6 +142,7 @@
aa46a8
         ($ThisLine =~ m/tickadj = /) or # startup
aa46a8
         ($ThisLine =~ m/precision = /) or # startup
aa46a8
         ($ThisLine =~ m/ (succeeded|failed)/) or # startup
aa46a8
+        ($ThisLine =~ m/sendto\(\S+\): Success/) or # startup
aa46a8
         ($ThisLine =~ m/kernel time (discipline|sync) status/) or # startup
aa46a8
         ($ThisLine =~ m/kernel time sync (dis|en)abled /) or # startup
aa46a8
         ($ThisLine =~ m/frequency initialized/) or # startup
aa46a8
@@ -154,6 +155,8 @@
aa46a8
         ($ThisLine =~ /Listening on interface .* Disabled/) or
aa46a8
         ($ThisLine =~ /Listen and drop on /) or
aa46a8
         ($ThisLine =~ /Listening on routing socket on/) or
aa46a8
+        ($ThisLine =~ /.* interface .* -> \(null\)/) or
aa46a8
+        ($ThisLine =~/Deferring DNS for/) or
aa46a8
 	($ThisLine =~ /ntp_io: estimated max descriptors: \d*, initial socket boundary: \d*/) or
aa46a8
 	($ThisLine =~ /peers refreshed$/) or
aa46a8
 	($ThisLine =~ /restrict: error in address/) or
aa46a8
@@ -177,7 +180,7 @@
aa46a8
     } elsif ( my (undef,$TimeStep) = ($ThisLine =~ /(offset) ([^ ]+) sec/ )) {
aa46a8
        push @TimeReset, $TimeStep;
aa46a8
     # MEv end no leadin to line
aa46a8
-    } elsif ( my ($ListenOn) = ($ThisLine =~ /Listening on interface (.*)(?: Enabled)?/ )) {
aa46a8
+    } elsif ( my ($ListenOn) = ($ThisLine =~ /Listening on interface(?: #\d+)? (.*)(?: Enabled)?/ )) {
aa46a8
        $Interfaces{$ListenOn}++;
aa46a8
     } elsif ( my ($ListenOn) = ($ThisLine =~ /Listen normally on \d+ (.*)/ )) {
aa46a8
        $Interfaces{$ListenOn}++;
aa46a8
@@ -196,7 +199,7 @@
aa46a8
        $TwoInst{$name}++;
aa46a8
     } elsif ( my ($Error) = ($ThisLine =~ /(no server(s reachable| suitable for synchronization found))/ )) {
aa46a8
        $Errors{$Error}++;
aa46a8
-    } elsif ( my ($Error) = ($ThisLine =~ /(can't find host \S+|no servers can be used, exiting)/ )) {
aa46a8
+    } elsif ( my ($Error) = ($ThisLine =~ /([Cc]an't find host \S+|no servers can be used, exiting)/ )) {
aa46a8
        $Errors{$Error}++;
aa46a8
     } elsif ( my ($Error) = ($ThisLine =~ /(sendto\(\S+\): Network is unreachable)/ )) {
aa46a8
        $Errors{$Error}++;