Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: askelon on September 07, 2004, 10:45:31 PM
-
Since I installed mrtg via the script at http://sme.swerts-knudsen.dk/ Ive been getting spammed with the following email every 5 mins:
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 ''
Now Ive been into the directory and looked at the virusstats.pl and the file is there, I even deleted it and renamed the previous copy to the same name and it didnt make a difference. I'd like to be able to either disable it from checking the virus stats (which I dont really care too much about anyway) or just to plain remove the program altogether. Any help would be greatly appreciated!
-
You can disable the virus stats section by editing /etc/mrtg/all-ip and putting a '#' in front of the line that reads:
/usr/bin/mrtg /etc/mrtg/virus.cfg;
Also, check to make sure you have /var/log/amavis-ng/amavis-ng.log present - this is the file it can't find.
-
Thanks heaps for that.. Just finished editing it and hopefully no more spam every 5 mins ;).. I had a feeling I needed to edit it but didnt want to go and break everything!
-
Just installed the script, and had the same problem. I quieted things down by just manualy creating the log file in /var/log/amavis-ng/
Bob