Koozali.org: home of the SME Server

Problem with Clam antivirus

skiguy09

Problem with Clam antivirus
« on: May 19, 2004, 05:55:10 AM »
I recently installed clam antivirus on SME server v6 using the instructions at this link:

http://pagefault.org/howto/e-smith-antivirus.shtml

every 5 minutes I get this email:

grep: /var/log/amavis-ng/amavis-ng.log: No such file or directory
grep: /var/log/amavis-ng/amavis-ng.log: No such file or directory
grep: /var/log/amavis-ng/amavis-ng.log: No such file or directory
WARNING: Problem with External get '/etc/mrtg/virusstats.pl localhost virus':
   Expected a Number for 'in' but got ''

WARNING: Problem with Externale get '/etc/mrtg/virusstats.pl localhost virus':
   Expected a Number for 'out' but got ''

grep: /var/log/amavis-ng/amavis-ng.log: No such file or directory
grep: /var/log/amavis-ng/amavis-ng.log: No such file or directory
grep: /var/log/amavis-ng/amavis-ng.log: No such file or directory
WARNING: Problem with External get '/etc/mrtg/virusstats.pl localhost virus':
   Expected a Number for 'in' but got ''

WARNING: Problem with Externale get '/etc/mrtg/virusstats.pl localhost virus':
   Expected a Number for 'out' but got ''





Any ideas on how to fix this??

Anonymous

Problem with Clam antivirus
« Reply #1 on: May 19, 2004, 03:46:36 PM »
anyone have any ideas?

Offline smeghead

  • *
  • 563
  • +0/-0
Problem with Clam antivirus
« Reply #2 on: May 19, 2004, 07:17:02 PM »
To fix the amavis log issue run the following commands at the prompt:

mkdir /var/log/amavis-ng
chown qmailq:qmail /var/log/amavis-ng
chmod 755 /var/log/amavis-ng
touch /var/log/amavis-ng/amavis-ng.log
chown root:root /var/log/amavis-ng/amavis-ng.log
chmod 666 /var/log/amavis-ng/amavis-ng.log

The mrtg issue I would guess is related because there is no amavis log file to parse so it can't monitor.

HTH

[/quote]
..................