|
系统为Debian的testing,squid的版本号为Version 2.7.STABLE9。现在的故障现象有两个:一是不能自动产生html文件,二是html输出目录的Daily始终为空。相关的配置文件如下:
# cat sarg-reports.conf
SARG=/usr/sbin/sarg
CONFIG=/etc/sarg/sarg.conf
HTMLOUT=/var/www/html/squid-reports
PAGETITLE="Access Reports on $(hostname)"
LOGOIMG=/sarg/images/sarg.png
LOGOLINK="http://$(hostname)/"
DAILY=Daily
WEEKLY=Weekly
MONTHLY=Monthly
EXCLUDELOG1="SARG: No records found"
EXCLUDELOG2="SARG: End"
#grep -i output_dir sarg.conf
# TAG: output_dir
output_dir /var/www/html/squid-reports
#output_dir /var/lib/sarg
# cat /etc/cron.daily/sarg
#!/bin/sh
if [ -x /usr/sbin/sarg-reports ]; then
/usr/sbin/sarg-reports daily
fi
请兄弟们指教 |
|