View previous topic :: View next topic |
Author |
Message |
javier n00b
Joined: 12 Feb 2004 Posts: 13
|
Posted: Thu Mar 04, 2004 12:05 am Post subject: amavis-stats Amavis log analyzer |
|
|
I just found this http://rekudos.net/amavis-stats/ and seems to be fine, but at point #5, which reads:
Quote: | 5. As your user "amavis" simply run amavis-stats on the log file that
contains the amavis entries. You should see something like the following:
root# su amavis
amavis# /usr/sbin/amavis-stats /var/log/mail.info
./amavis-stats: First Time Run
./amavis-stats: First seen virus #1 (passed) at 1064126856
./amavis-stats: First seen virus #2 (infected) at 1064127319
./amavis-stats: First seen virus #3 (W32/Swen.A@mm) at 1064127319
./amavis-stats: First seen virus #4 (Forten.F@m) at 1064131924
./amavis-stats: First seen virus #5 (W32/Lentin.H@mm) at 1064133728
./amavis-stats: First seen virus #6 (W32/Bugbear.B@mm) at 1064146880
...
You should then see a bunch of rrd files in /var/lib/amavis-stats. |
I get no feedback from that command (/usr/sbin/amavis-stats /var/log/mail/current
Does anyone like the idea and would like to get it to work a little further?
Greets. |
|
Back to top |
|
|
javier n00b
Joined: 12 Feb 2004 Posts: 13
|
Posted: Thu Mar 04, 2004 11:30 am Post subject: |
|
|
Ok, i had my amavis logs being redirected to syslog (metalog).
I changed this so they were written in /var/run/amavis/amavis.log
after executing the command, i get this:
Quote: | optimus amavis # /usr/sbin/amavis-stats /var/run/amavis/amavis.log
amavis-stats: New virus (infected) (#1) seen at 1078396868
amavis-stats: New virus (Worm.Gibe.F) (#2) seen at 1078396868
amavis-stats: New virus (W32/Bagle.k@MM) (#3) seen at 1078397539 |
After that, added the line to cron to run it every 5 minutes and restarted apache.
Pointing to http://apachehost/amavis-stats/ worked flawlessly.
Now i have to investigate why monthly and yearly numbers are not populating with the same numbers as hourly, daily or weekly. |
|
Back to top |
|
|
dodger10k Tux's lil' helper
Joined: 27 Jun 2003 Posts: 97
|
Posted: Sun Mar 07, 2004 12:07 am Post subject: |
|
|
javier wrote: | Now i have to investigate why monthly and yearly numbers are not populating with the same numbers as hourly, daily or weekly. |
Same problem here. Did you already find a solution for this? |
|
Back to top |
|
|
javier n00b
Joined: 12 Feb 2004 Posts: 13
|
|
Back to top |
|
|
alterself.com Apprentice
Joined: 13 Nov 2003 Posts: 175 Location: Iowa
|
Posted: Fri Apr 29, 2005 3:18 pm Post subject: |
|
|
they wont be the same numbers because it is an average, not a running total. |
|
Back to top |
|
|
|