LinuxHelps.com

A blog for Linux Lovers.

Posted by sibu on March 3, 2009

Eximstats

eximstats : - generates statistics from Exim mainlog or syslog files.

eximstats [Output] [Options] mainlog1
eximstats -merge [Options] report.1.txt report.2.txt … > weekly_report.txt

Output:

-txt
Output the results in plain text to STDOUT.

-txt=filename
Output the results in plain text. Filename ‘-’ for STDOUT is accepted.

-html
Output the results in HTML to STDOUT.

-html=filename
Output the results in HTML. Filename ‘-’ for STDOUT is accepted.

Eg: #eximstats -html exim_mainlog > report.html

Options:

-ne - Don’t display error information.

-nr - Don’t display relaying information.

-nr/pattern/ - Don’t display relaying information that matches.

-qlist - List of times for queuing information single 0 item suppresses.

-t_remote_users - Include remote users in the top source/destination listings.

-include_original_destination  - Include the original destination email addresses rather than just using the final ones. Useful for finding out which of your mailing lists are receiving mail.

-show_dtlist  - Show the delivery times (DT)for all the messages.

-byhost  - Show results by sending host. This may be combined with -bydomain and/or -byemail and/or -byedomain. If none of these options are specified, then -byhost is assumed as a default.

-bydomain  - Show results by sending domain. May be combined with -byhost and/or -byemail and/or -byedomain.

-byemail  - Show results by sender’s email address. May be combined with -byhost and/or -bydomain and/or -byedomain.

-byemaildomain or -byedomain - Show results by sender’s email domain. May be combined with -byhost and/or -bydomain and/or -byemail.

-merge  - This option allows eximstats to merge old eximstat reports together. Eg:

eximstats -merge     report.*.txt > weekly_report.txt
eximstats -merge -html report.*.txt > weekly_report.html

-charts  - Create graphical charts to be displayed in HTML output. Only valid in combination with -html.

This requires the following modules which can be obtained from http://www.cpan.org/modules/01modules.index.html

GD
GDTextUtil GDGraph

To install these, download and unpack them, then use the normal perl installation procedure:

perl Makefile.PL
make
make test
make install

Add A Comment