diff --git a/logwatch-7.3.6-cron.patch b/logwatch-7.3.6-cron.patch new file mode 100644 index 0000000..1223d37 --- /dev/null +++ b/logwatch-7.3.6-cron.patch @@ -0,0 +1,98 @@ +--- logwatch-7.3.6/scripts/services/cron.pom 2007-02-16 04:13:51.000000000 +0100 ++++ logwatch-7.3.6/scripts/services/cron 2007-07-10 09:42:57.000000000 +0200 +@@ -98,7 +98,13 @@ while (defined($ThisLine = )) { + ($ThisLine =~ /INFO \(Running \@(re)?boot jobs\)/) or + ($ThisLine =~ /INFO \(Skipping \@(re)?boot jobs -- not system startup\)/) or + ($ThisLine =~ /INFO \(not boot nor reboot\)/) or +- ($ThisLine =~ /logfile turned over/) # newsyslog on OpenBSD ++ ($ThisLine =~ /logfile turned over/) or ++ ($ThisLine =~ /ready to process filesystem events/) or # newsyslog on OpenBSD ++ ($ThisLine =~ /loading (system|user) tables/) or ++ ($ThisLine =~ /loading table .*/) or ++ ($ThisLine =~ /cannot exec process: No such file or directory/) or ++ ($ThisLine =~ /void Inotify::Remove\(InotifyWatch\*\): removing watch failed/) or ++ ($ThisLine =~ /error: \(22\) Invalid argument/) + ) { + # Ignore + } elsif ( +@@ -175,6 +181,28 @@ while (defined($ThisLine = )) { + if ( $ntpdatemaxoffset < $offset ) { $ntpdatemaxoffset = $offset; } + } elsif ($ThisLine =~ /ntpdate\[\d+\]: no server suitable for synchronization found/) { + $ntpdatenosync++; ++ } elsif (($ThisLine =~ /incrond/) && ($ThisLine =~ /starting service/)) { ++ $INCRONDSS++; ++ } elsif (($ThisLine =~ /incrond/) && ($ThisLine =~ /stopping service/)) { ++ $INCRONDStS++; ++ } elsif (($ThisLine =~ /incrond/) && (($Table) = ($ThisLine =~ /system table (.*) created, loading/))) { ++ $INCRONDSTCr{$Table}++; ++ } elsif (($ThisLine =~ /incrond/) && (($User) = ($ThisLine =~ /table for user (.*) created, loading/))) { ++ $INCRONDUTCr{$User}++; ++ } elsif (($ThisLine =~ /incrond/) && (($Table) = ($ThisLine =~ /system table (.*) changed, reloading/))) { ++ $INCRONDSTCh{$Table}++; ++ } elsif (($ThisLine =~ /incrond/) && (($User) = ($ThisLine =~ /table for user (.*) changed, reloading/))) { ++ $INCRONDUTCh{$User}++; ++ } elsif (($ThisLine =~ /incrond/) && (($Table) = ($ThisLine =~ /system table (.*) destroyed, removing/))) { ++ $INCRONDSTDe{$Table}++; ++ } elsif (($ThisLine =~ /incrond/) && (($User) = ($ThisLine =~ /table for user (.*) destroyed, removing/))) { ++ $INCRONDUTDe{$User}++; ++ } elsif ( ($ThisLine =~ /incrond/) && ++ ( (($Error) = ($ThisLine =~ /(cannot create watch for (system table|user) .*: \(2\) No such file or directory)/)) || ++ (($Error) = ($ThisLine =~ /(access denied on (.*) - events will be discarded silently)/)) || ++ (($Error) = ($ThisLine =~ /(unhandled exception occurred)/)) ++ ) ) { ++ $INCRONDErr{$Error}++; + } else { + # Report any unmatched entries... + push @OtherList, "$ThisLine\n"; +@@ -262,6 +290,51 @@ if($ntpdatenosync) { + print "\nNtpDate could not sync: $ntpdatenosync times\n"; + } + ++if ($INCRONDSS) { ++ printf "\n service incrond started " . $INCRONDSS . ": time(s)\n"; ++} ++ ++if ($INCRONDStS) { ++ printf "\n service incrond stoped " . $INCRONDStS . ": time(s)\n"; ++} ++ ++if ((%INCRONDSTCr) || (%INCRONDUTCr)) { ++ printf "\n created tables \n"; ++ for $key (keys %INCRONDSTCr) { ++ print " system table " . $key . " created " . $INCRONDSTCr{$key} . ": time(s)\n"; ++ } ++ for $key (keys %INCRONDUTCr) { ++ print " table for user " . $key . " ceated " . $INCRONDUTCr{$key}. ": time(s)\n"; ++ } ++} ++ ++if ((%INCRONDSTCh) || (%INCRONDUTCh)) { ++ printf "\n changes of tables \n"; ++ for $key (keys %INCRONDSTCh) { ++ print " system table " . $key . " changed " . $INCRONDSTCh{$key} . ": time(s)\n"; ++ } ++ for $key (keys %INCRONDUTCh) { ++ print " table for user " . $key . "changed " . $INCRONDUTCh{$key} . ": time(s)\n"; ++ } ++} ++ ++if ((%INCRONDSTDe) || (%INCRONDUTDe)) { ++ printf "\n destroyed tables \n"; ++ for $key (keys %INCRONDSTDe) { ++ print " system table " . $key . " destroyed " . $INCRONDSTDe{$key} . ": time(s)\n"; ++ } ++ for $key (keys %INCRONDUTDe) { ++ print " table for user ". $key ." destroyed " .$INCRONDUTDe{$key} . ": time(s)\n"; ++ } ++} ++ ++if (%INCRONDErr) { ++ printf "\n incrond daemon errors \n"; ++ for $key (keys %INCRONDErr) { ++ print " " . $key . ": " . $INCRONDErr{$key} . " time(s)\n"; ++ } ++} ++ + if ($#OtherList >= 0) { + print "\n**Unmatched Entries**\n"; + print @OtherList; diff --git a/logwatch.spec b/logwatch.spec index 7309819..5b8d009 100644 --- a/logwatch.spec +++ b/logwatch.spec @@ -1,7 +1,7 @@ Summary: A log file analysis program Name: logwatch Version: 7.3.6 -Release: 3%{?dist} +Release: 4%{?dist} License: MIT Group: Applications/System URL: http://www.logwatch.org/ @@ -18,6 +18,7 @@ Patch11: logwatch-7.3.6-named2.patch Patch12: logwatch-7.3.6-audit.patch Patch13: logwatch-7.3.6-pam_unix.patch Patch14: logwatch-7.3.6-named3.patch +Patch15: logwatch-7.3.6-cron.patch Requires: textutils sh-utils grep mailx BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -43,6 +44,7 @@ of the package on many systems. %patch12 -p1 %patch13 -p1 %patch14 -p1 +%patch15 -p1 %build @@ -155,6 +157,10 @@ rm -rf %{buildroot} %doc License project/CHANGES %changelog +* Tue Jul 10 2007 Ivana Varekova 7.3.6-4 +- Resolves: #246655 + add cron service patch + * Wed Jul 4 2007 Ivana Varekova 7.3.6-3 - add named, pam_unix and audit service patches