Datasheet

“main” (Installation and Administration) 2004/6/25 13:29 page 616 #642
i
i
i
i
i
i
i
i
Another option called redirect_children configures the number of
“redirect” (in this case squidGuard) processes running on the machine.
squidGuard is fast enough to handle many requests: on a 500 MHz Pen-
tium with 5,900 domains and 7,880 URLs (totalling 13,780), 100,000 re-
quests can be processed within 10 seconds. Therefore, it is not recom-
mended to set more than four processes, as the allocation of these processes
would consume an excessive amount of memory
redirect_children 4
Last, have Squid load the new configuration by running rcsquid reload.
Now, test your settings with a browser.
25.3.9 Cache Report Generation with Calamaris
Calamaris is a Perl script used to generate reports of cache activity in ASCII
or HTML format. It works with native Squid access log files. The Calamaris
home page is located at http://Calamaris.Cord.de/. The program is
quite easy to use.
Log in as root then enter cat access.log.files | calamaris
hoptionsi > reportfile. It is important when piping more than one
log file that the log files are chronologically ordered with older files first.
These are some options of the program:
-a output all available reports
-w output as HTML report
-l include a message or logo in report header
More information about the various options can be found in the program’s
manual page with man calamaris.
A typical example is:
cat access.log.2 access.log.1 access.log | calamaris -a -w \
> /usr/local/httpd/htdocs/Squid/squidreport.html
This puts the report in the directory of the web server. Apache is required
to view the reports.
Another powerful cache report generator tool is SARG (Squid Analysis
Report Generator). More information about this is available at: http://
web.onda.com.br/orso/.
616 25.3. Proxy Server: Squid