Sarg

From SME Server
Jump to navigation Jump to search

Sarg for SME Server

Maintainer

Dungog (Software)

Description

  • Sarg provides comprehensive reporting on the Squid web proxy usage.

Orginates from http://www.dungog.net/sme/dansguardian.php#sarg

Installation

1. Log in (with username root) to the SMEserver console.

2. If you already enabled Dungog repo, skip down to 4.

3. The following command will configure the Dungog repository on SME Server. The dungog repository will no longer be updated. All the contribs from this repository have been moved to the smecontribs repository.

DungogMember contribs are still at http://www.dungog.net After adding it to the database we have to update the changes to the configuration file:

signal-event yum-modify

4. Install sarg and smeserver-sarg

yum --enablerepo=dungog install smeserver-sarg

5. The following commands are not required:

signal-event post-upgrade; signal-event reboot

6. Open YOURSERVER/server-manager in a web browser

Configuration > web statistics and review settings.

Check installed version

yum info installed *sarg

That will show both packages.

Uninstall

yum remove sarg

This will also remove smeserver-sarg.

Additional information

http://sarg.sourceforge.net/sarg.php

smeserver-sarg was was originally developed by Michel Van hees aka Master Sleepy, http://www.vanhees.cc Thanks Michel

User Identification

Enable Squid authentication for users to be correctly logged

  • todo

Dansguardian

set sarg to use dansguardian logs

/usr/bin/sarglog dansguardian

also set dansguardian to save logs in squid format
logs in dansguardian format are ignored, (you may need to force a rotation)

Sarg Options

optional settings for sarg, first option is default

config setprop sarg language [English|Dutch|French|German|Spanish|Italian|...]
config setprop sarg values [bytes|abbreviation]
config setprop sarg logfile [squid|dansguardian]
config setprop sarg lastlog [0|365|num.of.days.to.keep.logs]

expand-templates with

/usr/bin/sarglog

Bugs

Please raise bugs under the SME-Contribs section in bugzilla and select the smeserver-sarg component or use this link .

Tested software versions


Overview of used software packages
Package Arch Version Repository Size
smeserver-sarg noarch 2.2.1-4 dungog 14 k
sarg noarch 2.2.1-1.el4.rf dungog 1.3 M