[prev in list] [next in list] [prev in thread] [next in thread] 

List:       exim-users
Subject:    [exim] exim "top" utility
From:       Matthew Newton <mcn4 () leicester ! ac ! uk>
Date:       2008-10-31 18:06:41
Message-ID: 20081031180641.GA20002 () ultra ! le ! ac ! uk
[Download RAW message or body]

Hi all,

I've been looking around the web to find a utility that will
display the current mail moving through an exim server, similar to
the "top" utility, or "ratop" for network data (Argus). As I
couldn't find anything, I've written something myself.

It displays the most frequent (for the last 5 minutes) of sending
address, domain, host, subject, and receiving address, domain and
host in the terminal window. So far it seems fairly good in what
it does, but there are many improvements that can be made, I'm
sure.

If you want to play it's available from the following URL. I'd be
interested in feedback for how to improve it, or ways of detecting
anomalies in the data (for alerting purposes).

  http://www.le.ac.uk/its/mcn4/exitop/

It currently has to be fed data, so, as all our mail servers
syslog to a common location, I run it with

tail -n10000 -f /mail/log/dir/*mail | syslog2exim | exitop

where -n10000 means you get some instant results, and syslog2exim
converts back to exim log format (small utility I wrote, on the
web site).

Hope it's useful to someone.

Cheers,

Matthew


-- 
Matthew Newton, Ph.D. <mcn4@le.ac.uk>

Systems Architect (UNIX and Networks), Network Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

"Times Higher Education University of the Year 2008"

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic