Koozali.org: home of the SME Server

Problems with mrtg...

Offline askelon

  • ***
  • 59
  • +0/-0
Problems with mrtg...
« 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!

Rogue

Problems with mrtg...
« Reply #1 on: September 08, 2004, 03:25:30 AM »
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.

Offline askelon

  • ***
  • 59
  • +0/-0
Problems with mrtg...
« Reply #2 on: September 08, 2004, 05:28:42 AM »
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!

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Problems with mrtg...
« Reply #3 on: November 11, 2004, 03:08:27 PM »
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
If you think you know whats going on, you obviously have no idea whats going on!