Jari Fredriksson wrote:
14.10.2009 23:55, Rick Knight kirjoitti:
Jari Fredriksson wrote:
14.10.2009 21:49, Mike Cardwell kirjoitti:
Jari Fredriksson wrote:
Jari,
How did you produce the great looking statistics?
Thanks,
Rick
It's a perl script called sa-stats.pl
I tried not google it for you, but could not find the original. Many
scripts with the same name though..
I put that to my server as http://www.iki.fi/jarif/sa/sa-stats.pl
I have modified the default file so that is scans /var/log/messages
which works for me (Debian), the script not runs without arguments.
That's a very nice script. I made one small change to it to make it
work
with gzip compressed logs. I replaced:
open(F,"$log");
With:
open(F,$log=~/\.gz$/i?"zcat $log|":"$log");
I took that modification into my copy, and updated the script in my
website too.
Works great, thanks!
Jari,
Thanks again for putting the script up. I found the original site and
downloaded the 3.1 version. In the instructions it says "If your top 5
does not contain URIBL_BLACK, see http://www.uribl.com/usage.shtml". On
my system URIBL_BLACK is number 8, so I follow the link and it takes me
to a page the has a ruleset that needs to be added to my local
configuration directory (/etc/mail/spamassassin). I don't appear to have
any local rulesets in my configuration directory to add them to. Can you
tell me how to add these rules?
Thanks again,
Rick
I don't know.
First things first! Please give me the URL of the original site and
latest version.
Then, we have to check SpamAssassin Users have to say about this. I have
URIBL_BLACK at row 9.
--
http://www.iki.fi/jarif/
You are fairminded, just and loving.
Jari,
Here's the url for the newer version
"http://www.rulesemporium.com/programs/sa-stats-1.0.txt".
Here's the URIBL site with the URIBL_BLACK ruleset
"http://www.uribl.com/usage.shtml".
Thanks,
Rick