I wrote a little script that run off cron every hour or so. But it *only* 
invokes freshclam after querying ClamAV's DNS TXT record to see if any 
advertised versions of 'daily', 'bytecode' or 'main' are newer than the local 
versions of the CVD files, as determined by 'head', not the files' timestamps. 
Only if something newer is supposed to be available (Cloudflare BOS mirror had 
some problems in the past), does it invoke freshclam. (It also keeps backup 
CVD/CLD files just in case.)

This provides a very low bandwidth way of getting ClamAV updates ASAP. (I even 
cron my different ClamAV machines at different odd times during the day.)

If anyone is interested, I could provide my scripts: 'getfreshclam' (Bash) 
which uses 'testclam-dns' (Perl).



On Wed, 10 Mar 2021 12:25:18 -0500
Gene Heskett via clamav-users <clamav-users@lists.clamav.net> wrote:

> Greetings;
> 
> I just reduced my freshclam fetch from 24 to 6 times a day.  But I do see 
> some errors when it does try to update:
> copy/paste, wordwrap off:
> from freshclam.log:
> 
> Wed Mar 10 08:09:24 2021 -> Received signal: wake up
> Wed Mar 10 08:09:24 2021 -> ClamAV update process started at Wed Mar 10 
> 08:09:24 2021
> Wed Mar 10 08:09:24 2021 -> daily database available for update (local 
> version: 26103, remote version: 26104)
> Wed Mar 10 08:09:24 2021 -> Testing 
> database: 
> '/var/lib/clamav/tmp.9230f/clamav-e29c7bfba68291a21e41dbe83fb8c776.tmp-daily.cld'
>  ...
> Wed Mar 10 08:09:29 2021 -> WARNING: [LibClamAV] cli_tgzload: Invalid 
> checksum for file daily.hsb
> Wed Mar 10 08:09:29 2021 -> WARNING: [LibClamAV] Can't 
> load 
> /var/lib/clamav/tmp.9230f/clamav-e29c7bfba68291a21e41dbe83fb8c776.tmp-daily.cld:
>  Malformed database
> Wed Mar 10 08:09:29 2021 -> ERROR: Failed to load new database: Malformed 
> database
> Wed Mar 10 08:09:29 2021 -> Database test passed.
> Wed Mar 10 08:09:31 2021 -> daily.cld updated (version: 26104, sigs: 3958880, 
> f-level: 63, builder: raynman)
> Wed Mar 10 08:09:31 2021 -> main.cld database is up to date (version: 59, 
> sigs: 4564902, f-level: 60, builder: sigmgr)
> Wed Mar 10 08:09:31 2021 -> bytecode.cld database is up to date (version: 
> 333, sigs: 92, f-level: 63, builder: awillia2)
> Wed Mar 10 08:09:31 2021 -> WARNING: Clamd was NOT notified: Can't connect to 
> clamd through /var/run/clamav/clamd.ctl: No such 
> file or directory
> 
> So obviously something is aglay with my config which I haven't touched 
> since debian stretch was installed. But it has been kept uptodate at 
> least weekly. synaptic says I have version 102-4.
> 
> What should I fix?
> 
> Thanks folks.
> 
> Cheers, Gene Heskett

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to