Difference between revisions of "Qmail Statistics (AWStats)"

From SME Server
Jump to navigationJump to search
(→‎Setup: fixed setup script)
Line 19: Line 19:
  
 
=== Setup ===
 
=== Setup ===
Download the setup script [http://mirror.contribs.org/smeserver/contribs/michaelw/sme7/Qmail-AWStats/qmail-awstats-setup.sh qmail-awstats-setup.sh] and run it.
+
Download the setup script [http://mirror.contribs.org/smeserver/contribs/michaelw/sme7/Qmail-AWStats/qmail-awstats-setup.v2.sh qmail-awstats-setup.v2.sh] and run it.
  
  wget <nowiki>http://mirror.contribs.org/smeserver/contribs/michaelw/sme7/Qmail-AWStats/qmail-awstats-setup.sh</nowiki>
+
  wget <nowiki>http://mirror.contribs.org/smeserver/contribs/michaelw/sme7/Qmail-AWStats/qmail-awstats-setup.v2.sh</nowiki>
  bash qmail-awstats-setup.sh
+
  bash qmail-awstats-setup.v2.sh
  
 
This script...
 
This script...
Line 34: Line 34:
 
Run the first update manually
 
Run the first update manually
 
  /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=mail
 
  /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=mail
 +
 +
Note: The setup script was updated to version 2 on Sep 7 2008. See forum thread http://forums.contribs.org/index.php?topic=42024.msg197025#msg197025
  
 
=== Usage ===
 
=== Usage ===

Revision as of 12:42, 7 September 2008


Introduction

Quoted from the AWStats homepage: AWStats is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically. This log analyzer works as a CGI or from command line and shows you all possible information your log contains, in few graphical web pages. It uses a partial information file to be able to process large log files, often and quickly. It can analyze log files from all major server tools like Apache log files (NCSA combined/XLF/ELF log format or common/CLF log format), WebStar, IIS (W3C log format) and a lot of other web, proxy, wap, streaming servers, mail servers and some ftp servers. Read more...

This Howto describes the Qmail statistics setup.

Screenshot

Installation

Download the RPM from the AWstats homepage

wget http://prdownloads.sourceforge.net/awstats/awstats-6.7-1.noarch.rpm

Install the RPM

/usr/bin/yum -y localinstall awstats-6.7-1.noarch.rpm


Important.png Note:
If you have the AWStats contrib installed, use this install command
rpm -ivh --force awstats-6.7-1.noarch.rpm



Setup

Download the setup script qmail-awstats-setup.v2.sh and run it.

wget http://mirror.contribs.org/smeserver/contribs/michaelw/sme7/Qmail-AWStats/qmail-awstats-setup.v2.sh
bash qmail-awstats-setup.v2.sh

This script...

  • creates an AWStats config file for Qmail
  • creates a data directory for AWStats
  • installs a logfile preprocessor script
  • creates a custom template for httpd.conf
  • creates a custom template for crontab


Run the first update manually

/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=mail

Note: The setup script was updated to version 2 on Sep 7 2008. See forum thread http://forums.contribs.org/index.php?topic=42024.msg197025#msg197025

Usage

Point your browser to https://YOUR_SMESERVER_IP/awstats/awstats.pl?config=mail and login as admin.