Search:  
Gentoo Wiki

Logreport

In this article we will install logreport.org's Lire - a framework which allows the generation of statistics from logs. We will install the reporting software as a standalone application which is invoked periodically using a cronjob to generate reports.

Even though Lire can report about a million things, in this guide we will cover only mail reports from Postfix. We will generate reports by domain and gather stats about virusses and spam scores (information generated by ClamAV and SpamAssassin).

Setting up the mailserver itself is not part of this guide and can be found on: $insert link here$

Requirements

The following software is needed:

* GNU gzip.
* Perl 5.6.1 or later (5.8.3 strongly recommended).
* The XML::Parser perl module.
* The DBD::SQLite2 perl module.
* The libintl-perl perl module.
* The Curses::UI perl module.
* The ploticus library to render graphs (optional but it will make your reports look so much better - and its only 400k)

Check what is needed to install:

emerge -avu gzip \>=perl-5.8.3 XML-Parser DBD-SQLite2 dev-perl/libintl-perl Curses-UI ploticus

If it looks alright, proceed with the emerge of the libs and sit back while it all gets installed. Most systems will have a recent version of gzip and perl so it shouldn't take too long.

Installing Lire

Once we have the basic software to run logreport's Lire, it time to fetch the reporting software itself. The latest version should be here: http://download.logreport.org/pub/current.tar.gz

Download to your server and extract the software:

wget http://download.logreport.org/pub/current.tar.gz
tar xvzf current.tar.gz
cd lire-version
./configure --prefix=/

Note that like most software, the default location for stuff is /usr/local. Because Gentoo normally doesn't use this layout, we relocate the prefix to /. Now run the compiler and if everything checks out, install Lire (note that the last step requires root access).

make
make install
Retrieved from "http://www.gentoo-wiki.info/Logreport"

Last modified: Fri, 05 Sep 2008 09:00:00 +0000 Hits: 333