Fwd: Clamav 'Database correctly reloaded' patch

"Kirk Bauer" <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
---------- Forwarded message ----------
From: Penelope Fudd <[email protected]>
Date: Mon, 21 Jul 2008 09:57:02 -0700 (PDT)
Subject: Clamav 'Database correctly reloaded' patch
To: [email protected]

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 <[email protected]>
http://linux.kaybee.org | www.logwatch.org
Author, Automating UNIX & Linux Administration
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.