SOURCES: logwatch-syslog-ng.patch (NEW) - match startup/shutdown from syslo...

glen glen at pld-linux.org
Mon Oct 6 08:53:05 CEST 2008


Author: glen                         Date: Mon Oct  6 06:53:05 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- match startup/shutdown from syslog-ng 2.0.9

---- Files affected:
SOURCES:
   logwatch-syslog-ng.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/logwatch-syslog-ng.patch
diff -u /dev/null SOURCES/logwatch-syslog-ng.patch:1.1
--- /dev/null	Mon Oct  6 08:53:06 2008
+++ SOURCES/logwatch-syslog-ng.patch	Mon Oct  6 08:53:00 2008
@@ -0,0 +1,29 @@
+--- logwatch-7.3.6/syslog-ng	2008-02-02 12:52:34.000000000 +0200
++++ logwatch-7.3.6-syslog/syslog-ng	2008-10-06 09:51:38.269584080 +0300
+@@ -59,15 +59,24 @@
+    }
+ 
+    #TD syslog-ng[9754]: syslog-ng version 1.6.2 starting
+-   elsif ($ThisLine =~ /^syslog-ng version ([0-9]*\.)*[0-9]* starting$/) {
++   #TD syslog-ng[3956]: syslog-ng starting up; version='2.0.9'
++   elsif ($ThisLine =~ /^syslog-ng version [\d.]+ starting$/ ||
++      $ThisLine =~ /^syslog-ng starting up; version='[\d.]+'$/) {
+       $Starts++;
+    }
+ 
+    #TD syslog-ng[9754]: syslog-ng version 1.6.2 going down
+-   elsif ($ThisLine =~ /^syslog-ng version ([0-9]*\.)*[0-9]* going down$/) {
++   #TD syslog-ng[20043]: syslog-ng shutting down; version='2.0.9'
++   elsif ($ThisLine =~ /^syslog-ng version [\d.]+ going down$/ ||
++      $ThisLine =~ /^syslog-ng shutting down; version='[\d.]+'$/) {
+       $Stops++;
+    }
+ 
++   #TD syslog-ng[20043]: Termination requested via signal, terminating;
++   elsif ($ThisLine =~ /^Termination requested via signal, terminating;/) {
++      # happens with shutdown, but it's not for extra accounting
++   }
++
+    #TD syslog-ng[4833]: STATS: dropped 0
+    elsif ($ThisLine =~ /^STATS: dropped ([0-9]*)$/) {
+       if ($1 != 0) { $Drops = $Drops + $1; }
================================================================


More information about the pld-cvs-commit mailing list