[ILUG] Help with gathering Exim mail stats.

Richard Archbold richarda at iol.ie
Tue Nov 20 15:49:59 GMT 2001


Thanks Dave,

That's pretty neat, I'm gonna try and do it in Perl anyway, and now that the
deadline has been moved to then end of the day I don't feel so much under
pressure.

Anyway, I don't do deliveries, but I'll certainly buy ya a pint.

Richard.


----- Original Message -----
From: "Dave Rynne" <dave at dspsrv.com>
To: "Richard Archbold" <richarda at iol.ie>
Cc: <ilug at linux.ie>
Sent: Tuesday, November 20, 2001 3:00 PM
Subject: Re: [ILUG] Help with gathering Exim mail stats.


> > Hi.
> >
> > My wonderful manager just came down to me and said that I have until 2pm
to
> > write a script that will look through a weeks mail logs and tell me that
> > total size of all mails sent through our mail servers.
>
> 2pm in which timezone ?
>
> >
> > Does anyone else using exim have this done already and is feeling
> > particularly generous ?
>
> Try something like:
> TOTAL=0; for i in `grep "<=" /var/log/exim/mainlog | awk '{print $9}' \
> | sed -e 's,S=,,'`; do TOTAL=$[$TOTAL+$i]; done; echo $TOTAL
>
> That's really quick and dirty but it's a start ..
>
> >
> > I'll gladly give over a heap of beers for the script :-)
>
> Cool .. I'll mail you my address and you can have them delivered ;)
>
> Dave
>
> >
> > Regards,
> >
> > Richard.
> >
> >
> >
> >
> > --
> > Irish Linux Users' Group: ilug at linux.ie
> > http://www.linux.ie/mailman/listinfo/ilug for (un)subscription
information.
> > List maintainer: listmaster at linux.ie
> >
>
>





More information about the ILUG mailing list