Re: [exim] email count per unit time

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jon Gerdes
Datum:  
To: exim-users@exim.org
Betreff: Re: [exim] email count per unit time
On Fri, 2015-09-11 at 10:35 +0100, John wrote:
> Hello list,
>
> Is there an easy way of measuring the number of emails handled by the
> server
> per unit time? Per day, week, month, ever.
>
> The server is also an smtp smarthost for a number of other servers so
> these
> would need to be counted as well as those sent/received locally.
>
> Many thanks,
>
> --
> John


John

snmpd can read logfiles for regexes and then populate a table in the
tree. Then you point something like Cacti at it.

See http://www.net-snmp.org/docs/man/snmpd.conf.html halfway down under
Log File Monitoring. It's a well hidden feature!

If you find the default logs a pain to parse, you can make use of
log_message to create custom entries, starting with an identifier.
Pass the lot through a decent syslog and you can split out the default
logs and your custom logs into separate files or a db or whatever. You
can use Exim stats on the default files. If you output to a db you
could run SQL queries for your reports.

There are lots of options 8)

Cheers
Jon


Blueloop Ltd
01460 271055
https://www.blueloop.net
Blueloop House, Ilchester Road, YEOVIL, BA21 3AA Registered England & Wales - 3981322