RE: [SAtalk] stats script, by (fairly) popular demand - off-topic question

2003-11-07 Thread ian douglas
> my @otherstuff = sort { > (my $numa) = ($a =~ m/\.(\d+)\./); > (my $numb) = ($b =~ m/\.(\d+)\./); > $numa <=> $numb || $a cmp $b > } @stuff; you rock, i owe ya a beer ;o) -id --- This SF.Net email sponsored by: Apac

RE: [SAtalk] stats script, by (fairly) popular demand - off-topic question

2003-11-07 Thread Chris Thielen
#!/usr/bin/perl my @stuff = ( 'maillog.11.gz', 'maillog.2.gz', 'maillog.10.gz', 'maillog', 'maillog.1.gz', 'maillog.3.gz', ); my @otherstuff = sort { (my $numa) = ($a =~ m/\.(\d+)\./); (my $numb) = ($b =~ m/\.(\d+)\./); $numa

RE: [SAtalk] stats script, by (fairly) popular demand - off-topic question

2003-11-07 Thread ian douglas
My new mailstats.pl script (matt's script with a few tweaks) is giving me some grief. My maillog files are named: maillog (for today) maillog.1.gz maillog.2.gz etc maillog.10.gz etc When Matt's script does the 'sort', it sorts it as: maillog maillog.1.gz maillog.10.gz maillog.11.gz maillog.2.gz

Re: [SAtalk] stats script, by (fairly) popular demand

2003-11-01 Thread AltGrendel
'mikea' wrote: There are probably some adjustments to be made. Use at your own risk. Enjoy. If you improve on it, please make the improvements available to the list. I've posted this on the Wiki at http://www.exit0.us/index.php/MikesStatScript

Re: [SAtalk] stats script, by (fairly) popular demand

2003-10-30 Thread 'mikea'
On Thu, Oct 30, 2003 at 02:45:39PM -0800, Kenneth Porter wrote: > --On Thursday, October 30, 2003 2:26 PM -0600 'mikea' <[EMAIL PROTECTED]> > wrote: > > > my $s = grep /is spam/, @wholefile; # spam > > This doesn't work with my copy of SA, which is using spamc/spamd. Inste

RE: [SAtalk] stats script, by (fairly) popular demand

2003-10-30 Thread Ian Douglas
> But the line that contains "is spam" doesn't seem to increment the counter. > /shrug still looking at that myself. ... because I upgraded to SA 2.60 this week and set MailScanner to log spam messages via syslog, which wasn't in place for last week. (slapping self upside the head) For this week

Re: [SAtalk] stats script, by (fairly) popular demand

2003-10-30 Thread Kenneth Porter
--On Thursday, October 30, 2003 2:26 PM -0600 'mikea' <[EMAIL PROTECTED]> wrote: > my $s = grep /is spam/, @wholefile; # spam This doesn't work with my copy of SA, which is using spamc/spamd. Instead of "is spam", I get "identified spam". --

Re: [SAtalk] stats script

2003-10-30 Thread Zionsville Autosport
i've got a couple of these scripts, but they don't seem to parse my log files. i'm running exim 4.22 with SA 2.55. exim logs to mainlog in /var/log/exim and SA logs to maillog in /var/log. i'm assuming there's a problem since my setup doesn't log the results in one file. i've cancatated the two

RE: [SAtalk] stats script, by (fairly) popular demand

2003-10-30 Thread Ian Douglas
> You will need to adjust the search string to match your mail logs. Here's my maillog snippet: Oct 30 14:12:40 ns1 MailScanner[3201]: New Batch: Scanning 1 messages, 4214 bytes Oct 30 14:12:40 ns1 MailScanner[3201]: Archived message h9UMAPR07828 to mbox file /var/spool/MailScanner/archive Oct

Re: [SAtalk] stats script, by (fairly) popular demand

2003-10-30 Thread Ray Dzek
You will need to adjust the search string to match your mail logs. my $t = grep /connect from/, @wholefile;# total my $s = grep /identified spam/, @wholefile; # spam my $d = grep /reject:/, @wholefile; # ruleset

RE: [SAtalk] stats script, by (fairly) popular demand

2003-10-30 Thread Ian Douglas
> > my $s = grep /is spam/, @wholefile; # spam My log does have "is spam" in the log yet the script is returning 0's for me as well. Trying to hunt it down. I've even tried other strings from the MailScanner-generated logs from /var/log/maillog to no avail. -id ---

RE: [SAtalk] stats script, by (fairly) popular demand

2003-10-30 Thread Jason Staudenmayer
'mikea' scribbled on Thursday, October 30, 2003 3:26 PM: > There are probably some adjustments to be made. > > Use at your own risk. Enjoy. > > If you improve on it, please make the improvements available > to the list. > > Mike Andrews > [EMAIL PROTECTED] > Tired old

RE: [SAtalk] stats script, by (fairly) popular demand

2003-10-30 Thread Jackson, Jeff
> Date: Thu, 30 Oct 2003 14:26:14 -0600 > From: "'mikea'" <[EMAIL PROTECTED]> > To: SA Mailing list <[EMAIL PROTECTED]> > Subject: [SAtalk] stats script, by (fairly) popular demand > > There are probably some adjustments to be made. > > Use at your own risk. Enjoy. > > If you improve on it, pl

RE: [SAtalk] stats script

2003-10-30 Thread Jason Staudenmayer
Come one Come ALL!!! Get the script here. http://members.lycos.co.uk/njadmin/mailstats.php3 Larry Gilson scribbled on Thursday, October 30, 2003 2:52 PM: > Everyone has an opinion so since you ask, I'll give you mine. Your > script > includes stats on SA so therefore

RE: [SAtalk] stats script

2003-10-30 Thread Jill U'Ren
Ditto -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mark Emerle Sent: Thursday, October 30, 2003 12:15 PM To: mikea; SA Mailing list Subject: RE: [SAtalk] stats script Please post, I wrote my own but would like to see if you included something in

RE: [SAtalk] stats script

2003-10-30 Thread Mark Emerle
Please post, I wrote my own but would like to see if you included something in yours that could be useful -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of mikea Sent: Thursday, October 30, 2003 2:13 PM To: SA Mailing list Subject: [SAtalk] stats script I hav

RE: [SAtalk] stats script

2003-10-30 Thread Larry Gilson
Everyone has an opinion so since you ask, I'll give you mine. Your script includes stats on SA so therefore it is SA related. Anything that can help me keep a grip on what is happening to my mailservers is worthwhile. Logs and stats really help in this area and your stats include SA. So as far