]> git.pld-linux.org Git - packages/calamaris.git/blame - calamaris.sysconfig
- drop obsolete and outdated manual inclusion of rpm macros
[packages/calamaris.git] / calamaris.sysconfig
CommitLineData
3b558ceb 1# Customized settings for Calamaris
2# $Id$
3b558ceb 3
4# This file is written with few assumptions:
5# 1. Calamaris is run AFTER logrotate.
6# 2. Old logs are compressed (gzipped).
7# 3. Logs are rotated daily.
8
9# Arguments passed to Calamaris. See calamaris(1) man page for details.
10# Default is "-a" which produces all kinds, except for peek, of reports:
11# domain (-d 20), performance (-P 60), requester (-r -1), status (-s) and type
12# (-t 20).
13#CALAMARIS_ARGS="-a"
14
910d548c 15# Reports can be generated as plain-text or HTML. This variable selects format
3b558ceb 16# in which reports will be saved (if you enable saving them later in this
17# file). Can be "plain" or "HTML". Default is "HTML" and if this is OK for you,
18# you don't have to set this variable.
19#SAVE_FORMAT="HTML"
20
910d548c 21# If reports are saved in http daemons directory, they should have correct
310f17c5
JK
22# permissions and owner, so the daemon can read them. This can be changed
23# only when calamaris is run as root (insecure!)
24
25# By default user and group are not set the permissions are "u=rw,g=r,o=r". You
26# can use any syntax accepted by chown and chmod.
27#SAVE_OWNER="root.http"
e5ce553e 28#SAVE_PERM="u=rw,g=r,o=r"
54a8876b 29
3b558ceb 30# This piece of HTML code is inserted at top of reports generated in HTML
31# format. Default is shown below.
32#HTML_LOGO="<H1>Caching Proxy Statistics</H1>"
33
910d548c 34# This variable selects format of reports sent via email. Can be "plain" or
3b558ceb 35# "HTML". Default is "plain" and if this is OK for you, you don't have to set
36# this variable.
37#SEND_FORMAT="plain"
38
910d548c 39# If you choose to have reports delivered via email, they will be sent to
3b558ceb 40# this address. Default is "root" and if this is OK for you, you don't have
41# to set this variable.
42#SEND_TO="root"
43
44# What to do with daily statistics. Can be "save", "send" or both. If empty,
45# daily statistics aren't generated. Default is "send" and if this is OK for
46# you, you don't have to set this variable.
47#DAILY_ACTION="send"
48
610796aa
ER
49# Top directory where to save output files
50OUTPUT_DIR="/home/services/httpd/html/cache_log"
51
910d548c 52# Logs to parse in order to create daily stats. Because of assumption that
53# this script is run *after* logrotate, log file is already gzipped. There
54# is no default. You have to put something here.
592a96bf
AM
55# DAILY_FILES="/var/log/archive/squid/access.log.1.gz"
56DAILY_FILES=$(ls -1t /var/log/archive/squid/access.log-*.gz | head -n 1)
02c454f9 57
3b558ceb 58# Where to save daily stats. Ignored if DAILY_ACTION doesn't contain "save".
59# There is no default. You have to put something here.
610796aa 60DAILY_SAVE_AS="$OUTPUT_DIR/daily.html"
3b558ceb 61
62# What to do with weekly statistics. Can be "save", "send" or both. If empty,
63# weekly statistics aren't generated. Default is "send" and if this is OK for
64# you, you don't have to set this variable.
65#WEEKLY_ACTION="send"
66
910d548c 67# Logs to parse in order to create weekly stats. Because of assumption that
68# this script is run *after* logrotate, all log files are already gzipped.
f862751e 69# There is no default. You have to put something here.
592a96bf
AM
70# WEEKLY_FILES=/var/log/archive/squid/access.log.{7,6,5,4,3,2,1}*
71WEEKLY_FILES=/var/log/archive/squid/access.log-*.gz
3b558ceb 72
73# Where to save weekly stats. Ignored if WEEKLY_ACTION doesn't contain "save".
74# There is no default. You have to put something here.
610796aa 75WEEKLY_SAVE_AS="$OUTPUT_DIR/weekly.html"
This page took 0.073035 seconds and 4 git commands to generate.