#125 Enhance awstats to display SPAM/errors in graphs and tabs

open
nobody
None
5
2012-10-11
2007-02-02
Jean-Luc RENARD
No

This patch enhances awstats.pl script to offer a better treatment of SMTP errors informations.
AWSTATS only displays SMTP errors in the "mail failed or refused" counter at top of HTML pages, and
'SMTP error codes' section at bottom of HTML pages.
This patch enhances AWSTATS to display SMTP errors in 'monthly/daily/weekly/hourly' graphs and tabs.

Original awstats.pl consider only "Hits" fields for mail counting.
'Pages' field count as no sense for SMTP.
This script changes AWSTATS behaviour, to make SMTP errors counted as pages.
So to display these new SMTP values in graph and tabs, it only requires that 'P' value be added to
'ShowMonthStats', 'ShowDaysOfMonthStats', 'ShowDaysOfWeekStats', 'ShowHoursStats' parameters in awstats
configuration file.

This patch may be combined with maillogconvert patch to offer SPAM detection in SMTP errors counts.
This combination offers a view on SPAM and SMTP error filtering on Internet SMTP gateways.

To use it 2 ways offer :
1) Replace existing awstats.pl script by this new one :
Copy awstats.pl.patch in awstats.pl directory.
Update awstats.pl script :
patch awstats.pl awstats.pl.patch

If you want to add SPAM counts in SMTP errors, apply too maillogconvert patch (see README.maillogconvert)

Discussion

  • READMEs and patchs for awstats.pl maillogconvert.pl

     
    Attachments