Koozali.org: home of the SME Server

MRTG problem e-mails

Hornox

MRTG problem e-mails
« on: November 19, 2005, 04:27:00 PM »
Hi all,

I have used the scripts from Swerts-Knudsen.dk to install MRTG and Clam antivirus on SME 6.5rc1. Both scripts worked like a charm. Great!

But now I receive this email every 5 min:

Quote
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 ''


Does anyone know how to fix this? Looks like MRTG cannot find the "amavis-ng.log" file. Sounds simple but I cannot find this file anyware on my system.

Thanx!

Offline psoren

  • *
  • 371
  • +0/-0
Re: MRTG problem e-mails
« Reply #1 on: November 20, 2005, 01:47:59 AM »
Quote from: "Hornox"
Hi all,

I have used the scripts from Swerts-Knudsen.dk to install MRTG and Clam antivirus on SME 6.5rc1. Both scripts worked like a charm. Great!

But now I receive this email every 5 min:

Quote
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 ''


Does anyone know how to fix this? Looks like MRTG cannot find the "amavis-ng.log" file. Sounds simple but I cannot find this file anyware on my system.

Thanx!


Try "touch /var/log/amavis-ng/amavis-ng.log" from the command line.
That creates the file (empty). There has just not been anything to log yet  :-)

Per