Difference between revisions of "Sarg"

From SME Server
Jump to navigationJump to search
m (new category)
Line 45: Line 45:
  
 
also set dansguardian to save logs in squid format<br>
 
also set dansguardian to save logs in squid format<br>
 +
edit /etc/dansguardian/dansguardian.conf and change following value:
 +
logfileformat = 3
 
logs in dansguardian format are ignored, (you may need to force a rotation)
 
logs in dansguardian format are ignored, (you may need to force a rotation)
  

Revision as of 17:08, 12 November 2007

Sarg for SME Server

Maintainer

Dungog (Software)

Description

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

Installation

Download and do a localinstall or

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

Install sarg and smeserver-sarg

yum --enablerepo=dungog install smeserver-sarg

The following commands are not required:

signal-event post-upgrade; signal-event reboot

Open yourserver/server-manager in a web browser

Configuration > Web Statistics enable and review settings.

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, see http://wiki.contribs.org/Dansguardian#Configuring_Proxy_to_use_Auth_login

Dansguardian

set sarg to use dansguardian logs

/usr/bin/sarglog dansguardian

also set dansguardian to save logs in squid format
edit /etc/dansguardian/dansguardian.conf and change following value:

logfileformat = 3

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

  • Host: SMEserver v7.2
  • Installed: smeserver-sarg 2.2.1-4.el4.sme
  • Dependency Installed: sarg 2.2.1-1.el4.rf