[Logwatch-Devel] Fwd: Clamav 'Database correctly reloaded' patch

Kirk Bauer kirk at kaybee.org
Mon Jul 21 10:17:21 MST 2008


---------- Forwarded message ----------
From: Penelope Fudd <kernel at pkts.ca>
Date: Mon, 21 Jul 2008 09:57:02 -0700 (PDT)
Subject: Clamav 'Database correctly reloaded' patch
To: logwatch-patches at logwatch.org

Clamav has changed a little bit; it now loads signatures, not viruses:
/usr/share/logwatch/scripts/services/clamav


--- clamav.orig	2008-07-21 09:53:20.000000000 -0700
+++ clamav	2008-07-21 09:53:42.000000000 -0700
@@ -38,7 +38,7 @@
       $SelfCheck{$Check}++;
    } elsif (($Virus) = ($ThisLine =~ /^.+?: (.*?) FOUND/i )) {
       $VirusList{$Virus}++;
-   } elsif (($Viruses) = ($ThisLine =~ /^Database correctly reloaded
\((\d+) viruses\)/i )) {
+   } elsif (($Viruses) = ($ThisLine =~ /^Database correctly reloaded
\((\d+) (viruses|signatures)\)/i )) {
       $DatabaseReloads++;
       $DatabaseViruses = $Viruses;
    } elsif (($ThisLine =~ /Stopped at/)) {




-- 
Kirk Bauer <kirk at kaybee.org>
http://linux.kaybee.org | www.logwatch.org
Author, Automating UNIX & Linux Administration


More information about the Logwatch-Devel mailing list