rpms/logwatch/devel logwatch-7.3.6-cron5.patch, NONE, 1.1 logwatch.spec, 1.93, 1.94

Ivana Varekova (varekova) fedora-extras-commits at redhat.com
Wed Aug 6 11:32:10 UTC 2008


Author: varekova

Update of /cvs/pkgs/rpms/logwatch/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17418

Modified Files:
	logwatch.spec 
Added Files:
	logwatch-7.3.6-cron5.patch 
Log Message:
- add cron service patch to parse more logs


logwatch-7.3.6-cron5.patch:

--- NEW FILE logwatch-7.3.6-cron5.patch ---
diff -up logwatch-7.3.6/scripts/services/cron.pom logwatch-7.3.6/scripts/services/cron
--- logwatch-7.3.6/scripts/services/cron.pom	2008-06-20 10:42:20.000000000 +0200
+++ logwatch-7.3.6/scripts/services/cron	2008-08-06 12:55:21.000000000 +0200
@@ -103,7 +103,10 @@ while (defined($ThisLine = <STDIN>)) {
       ($ThisLine =~ /loading (system|user) tables/) or
       ($ThisLine =~ /loading table .*/) or 
       ($ThisLine =~ /void Inotify::Remove\(InotifyWatch\*\): removing watch failed/) or 
-      ($ThisLine =~ /error: \(22\) Invalid argument/)
+      ($ThisLine =~ /error: \(22\) Invalid argument/) or
+      ($ThisLine =~ /INFO \(running with inotify support\)/) or
+      ($ThisLine =~ /INFO \(\@reboot jobs will be run at computer's startup.\)/)
+      
    ) {
       # Ignore
    } elsif (
@@ -148,6 +151,12 @@ while (defined($ThisLine = <STDIN>)) {
          $BFMFile{$FileName}++; 
       } elsif ( ($FileName) = ($ThisLine =~ /WRONG FILE OWNER \((.+)\)/) ) {
          $WFO{$FileName}++;
+      } elsif ($ThisLine =~ /FAILED to authorize user with PAM \(User not known to the underlying authentication module\)/) {
+          $PAMAUTHErr++;
+      } elsif ( ($FileName,$Cause) = ($ThisLine =~ /ERROR chdir failed \((.*)\): (.*)/) ) {
+          $CHDIRErr{"$FileName,$Cause"}++;
+      } elsif ($ThisLine =~ /ERROR \(failed to change user\)/) {
+          $CHUSERHErr++;       
       } else {
          # Report any unmatched entries...
          push @OtherList, "$ThisLine\n";
@@ -352,10 +361,27 @@ if (%INCRONDErr) {
 if (%SELCONTErr) {
   printf "\n  SELinux context error \n";
   for $key (keys %SELCONTErr) {
-    print "    " . $key . ": " . $SELCONTErr{$key} . "time(s)\n";
+    print "    " . $key . ": " . $SELCONTErr{$key} . " time(s)\n";
   }
 }
 
+if ($PAMAUTHErr) {
+   printf "\nPAM autentification error: " . $PAMAUTHErr . " time(s)\n";
+}
+
+if (%CHDIRErr) {
+  printf "\nchdir command failed\n";
+  foreach (keys %CHDIRErr) {
+    my ($File,$Cause) = split ",";
+    print "    for directory " . $File . " (" . $Cause . ")". ": " . $CHDIRErr{"$File,$Cause"} . " time(s)\n";
+  }
+}
+
+if ($CHUSERHErr) {
+   printf "\nUser change error: " . $CHUSERHErr . " time(s)\n";
+}
+
+
 
 if ($#OtherList >= 0) {
    print "\n**Unmatched Entries**\n";


Index: logwatch.spec
===================================================================
RCS file: /cvs/pkgs/rpms/logwatch/devel/logwatch.spec,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -r1.93 -r1.94
--- logwatch.spec	20 Jun 2008 09:47:46 -0000	1.93
+++ logwatch.spec	6 Aug 2008 11:31:40 -0000	1.94
@@ -1,7 +1,7 @@
 Summary: A log file analysis program
 Name: logwatch
 Version: 7.3.6
-Release: 24%{?dist}
+Release: 25%{?dist}
 License: MIT
 Group: Applications/System
 URL: http://www.logwatch.org/
@@ -42,6 +42,7 @@
 Patch37: logwatch-7.3.6-sendmail.patch
 Patch38: logwatch-7.3.6-audit3.patch
 Patch39: logwatch-7.3.6-init.patch
+Patch40: logwatch-7.3.6-cron5.patch
 
 Requires: textutils sh-utils grep mailx
 Requires: perl(Date::Manip)
@@ -92,6 +93,7 @@
 %patch37 -p1
 %patch38 -p1
 %patch39 -p1
+%patch40 -p1
 rm -f scripts/services/*.orig
 
 %build
@@ -205,6 +207,9 @@
 %doc License project/CHANGES 
 
 %changelog
+* Wed Aug  6 2008 Ivana Varekova <varekova at redhat.com> 7.3.6-25
+- add cron service patch to parse more logs
+
 * Fri Jun 20 2008 Ivana Varekova <varekova at redhat.com> 7.3.6-24
 - Resolves: #452044
   handle 2.6.25+ audit messages




More information about the fedora-extras-commits mailing list