Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
amavis-stats Amavis log analyzer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
javier
n00b
n00b


Joined: 12 Feb 2004
Posts: 13

PostPosted: Thu Mar 04, 2004 12:05 am    Post subject: amavis-stats Amavis log analyzer Reply with quote

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
View user's profile Send private message
javier
n00b
n00b


Joined: 12 Feb 2004
Posts: 13

PostPosted: Thu Mar 04, 2004 11:30 am    Post subject: Reply with quote

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
View user's profile Send private message
dodger10k
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jun 2003
Posts: 97

PostPosted: Sun Mar 07, 2004 12:07 am    Post subject: Reply with quote

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
View user's profile Send private message
javier
n00b
n00b


Joined: 12 Feb 2004
Posts: 13

PostPosted: Sun Mar 07, 2004 9:49 am    Post subject: Reply with quote

have a look at mine

http://www.javierin.com/statscorreo/
Back to top
View user's profile Send private message
alterself.com
Apprentice
Apprentice


Joined: 13 Nov 2003
Posts: 175
Location: Iowa

PostPosted: Fri Apr 29, 2005 3:18 pm    Post subject: Reply with quote

they wont be the same numbers because it is an average, not a running total.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum