SF.net SVN: logwatch:[60] scripts/services/xntpd

[email protected]
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Revision: 60
          http://logwatch.svn.sourceforge.net/logwatch/?rev=60&view=rev
Author:   stefjakobs
Date:     2011-06-25 20:19:24 +0000 (Sat, 25 Jun 2011)

Log Message:
-----------
add: recognize syntax errors; ignore some more
fix: some formating

Modified Paths:
--------------
    scripts/services/xntpd

Modified: scripts/services/xntpd
===================================================================
--- scripts/services/xntpd	2011-06-25 17:21:13 UTC (rev 59)
+++ scripts/services/xntpd	2011-06-25 20:19:24 UTC (rev 60)
@@ -154,7 +154,10 @@
         ($ThisLine =~ /Listening on interface .* Disabled/) or
         ($ThisLine =~ /Listen and drop on /) or
         ($ThisLine =~ /Listening on routing socket on/) or
-	($ThisLine =~ /ntp_io: estimated max descriptors: \d*, initial socket boundary: \d*/)
+	($ThisLine =~ /ntp_io: estimated max descriptors: \d*, initial socket boundary: \d*/) or
+	($ThisLine =~ /peers refreshed$/) or
+	($ThisLine =~ /restrict: error in address/) or
+	($ThisLine =~ /syntax error in .+ line \d+, column \d+$/)
     ) {
        # Ignore these
     } elsif ($ThisLine =~ m/ntpd [\d\-\.\w@]+ ... ... .. ..:..:.. /) {
@@ -203,6 +206,8 @@
        $Errors{$Error}++;
     } elsif ( my ($ConfErr) = ($ThisLine =~ /configure: (keyword "[^"]*" unknown, line ignored)/ )) {
        $ConfErrs{$ConfErr}++;
+    } elsif ( my ($ConfErr) = ($ThisLine =~ /line \d+ column \d+ syntax error, (.+)$/ )) {
+       $ConfErrs{$ConfErr}++;
     } elsif ( my ($StepTime) = ($ThisLine =~ /(.*:) Operation not permitted/) ) {
        $Operations{$StepTime}++
     } else {
@@ -244,7 +249,7 @@
        }
        $t++;
     }
-    print "\nTotal interfaces $t (non-local: $lt)\n";
+    print "\nTotal interfaces: $t (non-local: $lt)\n";
 }
 
 if (keys %Syncs) {
@@ -272,7 +277,7 @@
 }
 
 if (keys %ConfErrs) {
-    print "\nErrors in configuration file\n";
+    print "\nErrors in configuration file:\n";
     foreach my $k (keys %ConfErrs) {
       print "  $k ". $ConfErrs{$k} . " time(s)\n";
     }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security 
threats, fraudulent activity and more. Splunk takes this data and makes 
sense of it. Business sense. IT sense. Common sense.. 
http://p.sf.net/sfu/splunk-d2d-c1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.