[Logwatch-Devel] minor patches to clam-update, dhcpd, up2date

Sergey Svishchev svs at ropnet.ru
Tue Jan 10 02:23:44 MST 2006


Good day,

clam-update: fix a typo
dhcpd: ignore BOOTREPLY messages
up2date: ignore "getAdvisoryInfo" and "Unable to import repomd support" 
(the latter is a leftover from Fedora version -- see 
http://info.ccone.at/INFO/Mail-Archives/redhat/Nov-2005/msg00153.html

-- 
Sergey Svishchev

-------------- next part --------------
--- scripts/services/clam-update	1 Dec 2005 04:15:55 -0000	1.14
+++ scripts/services/clam-update	10 Jan 2006 08:07:47 -0000
@@ -124,7 +124,7 @@
 }
 
 if ($UpdatedNum) {
-   print "\nThe ClamAV updated process was started $UpdatedNum time(s)\n"
+   print "\nThe ClamAV update process was started $UpdatedNum time(s)\n"
       if ($Detail >= 5);
 }
 else {
--- scripts/services/dhcpd	1 Oct 2005 18:43:05 -0000	1.15
+++ scripts/services/dhcpd	10 Jan 2006 08:07:47 -0000
@@ -24,7 +24,7 @@
    $line =~ s/\s+$//;
    next unless $line;
    if (
-      # All of these entries are generated at startup :(
+      # All of these entries are generated at startup unless -q is passed
           # Name of ISC was changed in 2004
       ($line =~ /^Internet (Systems|Software) Consortium DHCP Server/) or
       ($line =~ /^Copyright/) or
@@ -40,6 +40,7 @@
       ($line =~ /^Dynamic and static leases present for/) or
       ($line =~ /^from the dynamic address pool for/) or
       ($line =~ /^BOOTREQUEST/) or
+      ($line =~ /^BOOTREPLY/) or
       ($line =~ /^DHCPACK/) or
       ($line =~ /^DHCPNAK/) or
       ($line =~ /^DHCPINFORM/) or
--- scripts/services/up2date	28 Sep 2005 18:51:15 -0000	1.15
+++ scripts/services/up2date	10 Jan 2006 08:07:49 -0000
@@ -28,6 +28,7 @@
         ( $ThisLine =~ /^Opening rpmdb in \/var\/lib\/rpm\/ with option .$/ ) or
         ( $ThisLine =~ /^successfully retrieved authentication token from up2date server$/ ) or 
         ( $ThisLine =~ /^(getA|a)vailablePackageList from network$/ ) or
+        ( $ThisLine =~ /^getAdvisoryInfo for / ) or
         ( $ThisLine =~ /^logging into up2date server$/ ) or
         ( $ThisLine =~ /^A socket error occurred/ ) or
         ( $ThisLine =~ /^new up2date run started/ ) or
@@ -36,6 +37,7 @@
         ( $ThisLine =~ /^A protocol error occurred/ ) or
         ( $ThisLine =~ /^Error communicating with server\.\s+The message was:$/ ) or
         ( $ThisLine =~ /^Updating package profile/) or
+        ( $ThisLine =~ /^Unable to import repomd/) or
         ( $ThisLine =~ /^deleting \/var\/spool\/up2date\// ) ) { 
       # We don't care about these
    } elsif ( $ThisLine =~ s/^installing packages: ([^ ]+)/$1/ ) {


More information about the Logwatch-Devel mailing list