README (sarg-2.3.11) | : | README (sarg-2.4.0) | ||
---|---|---|---|---|
skipping to change at line 36 | skipping to change at line 36 | |||
default: /var/www/html | default: /var/www/html | |||
--enable-fontdir - where to find the fonts for the reports (--diable-fontdi r don't install the fonts) | --enable-fontdir - where to find the fonts for the reports (--diable-fontdi r don't install the fonts) | |||
default: /usr/local/share/sarg/fonts | default: /usr/local/share/sarg/fonts | |||
--enable-imagedir - where sarg take the images to include in the reports | --enable-imagedir - where sarg take the images to include in the reports | |||
default: /usr/local/share/sarg/images | default: /usr/local/share/sarg/images | |||
--enable-extraprotection - compile sarg with extra GCC options for increase d security | --enable-extraprotection - compile sarg with extra GCC options for increase d security | |||
default: use standard compilation warnings and no protection | default: use standard compilation warnings and no protection | |||
If compilation fails, try to configure sarg without this flag. | ||||
For a complete list of all the options, run ./configure --help. | For a complete list of all the options, run ./configure --help. | |||
Example: | ||||
./configure --prefix=/usr --sysconfdir=/etc/sarg --enable-extraprotection | ||||
3. make | 3. make | |||
4. sudo make install | 4. make install | |||
5. Go to /usr/local/sarg (or the path defined with --sysconfdir on configure) | ||||
and change sarg.conf to your liking. You may use sarg.conf provided along wit | ||||
h | ||||
the sources as a template for your new sarg.conf. In any case, have a look at | ||||
the sample sarg.conf for new options. | ||||
6. Install cron jobs to generate the reports. | ||||
For instance, create a file named /etc/cron.daily/sarg with the content: | ||||
#!/bin/sh | ||||
sarg -d day-1 -w /tmp/sarg.daily -o /var/www/squid-reports/Daily /var/log/s | ||||
quid3/access.log* | ||||
A weekly report is produced by /etc/cron.weekly/sarg: | ||||
#!/bin/sh | ||||
sarg -d week-1 -w /tmp/sarg.weekly -o /var/www/squid-reports/Weekly /var/lo | ||||
g/squid3/access.log* | ||||
And the monthly report is created with /etc/cron.monthly/sarg: | ||||
#!/bin/sh | 5. Go to /usr/local/sarg (or file entered with --sysconfdir on configure) | |||
sarg -d month-1 -w /tmp/sarg.monthly -o /var/www/squid-reports/Monthly /var | and change sarg.conf as you need. | |||
/log/squid3/access.log* | ||||
Make sure all those files are executable: | 6. Notes about sarg: | |||
chmod 755 /etc/cron.daily/sarg /etc/cron.weekly/sarg /etc/cron.monthly/sarg | Date/Time report: | |||
Every minute that a request is logged your time is incremented by the s | ||||
maller | ||||
of 1 minute or the total time for the requests. | ||||
Usage: sarg -h | Usage: sarg -h | |||
Sorttable.js | Sorttable.js | |||
------------ | ------------ | |||
Starting with sarg v2.3.2-pre2, a javascript is distributed along with sarg to | Starting with sarg v2.3.2-pre2, a javascript is distributed along with sarg to | |||
dynamically sort the reports. It is sorttable.js written by Stuart Langridge | dynamically sort the reports. It is sorttable.js written by Stuart Langridge | |||
and available at http://www.kryogenix.org/code/browser/sorttable/. The version | and available at http://www.kryogenix.org/code/browser/sorttable/. The version | |||
included with sarg contains some fixes and improvements over the original | included with sarg contains some fixes and improvements over the original | |||
skipping to change at line 117 | skipping to change at line 96 | |||
http://www.gnu.org/software/gettext/manual/gettext.html#Language-Codes for the l ist of the | http://www.gnu.org/software/gettext/manual/gettext.html#Language-Codes for the l ist of the | |||
valid languages codes. | valid languages codes. | |||
Translate YourLanguageCode.po (see http://www.gnu.org/software/gettext/manual/ge ttext.html for more informations). | Translate YourLanguageCode.po (see http://www.gnu.org/software/gettext/manual/ge ttext.html for more informations). | |||
Submit the translated po file to robot@translationproject.org. You must be a mem ber of the team | Submit the translated po file to robot@translationproject.org. You must be a mem ber of the team | |||
working on the language for which you are submitting the po file or the robot wi ll reject | working on the language for which you are submitting the po file or the robot wi ll reject | |||
your file. It is not necessary to fill the disclaimer to translate sarg. | your file. It is not necessary to fill the disclaimer to translate sarg. | |||
Special thanks to: | Special thanks to: | |||
Matteo Colombo <matteo@calcol.it> - Italian language | Matteo Colombo <matteo@calcol.it> - Italian language | |||
Evgeniy Yakushev <yen81@mail.ru> - Russian language | Palamarchuk Eugen <eugen@cit.od.ukrtel.net> - Russian language | |||
Csaba Kabai <ckabai@icnpharm.com> - Hungarian language | Csaba Kabai <ckabai@icnpharm.com> - Hungarian language | |||
Evren Yurtesen <yurtesen@ispro.net.tr> - Turkish language | Evren Yurtesen <yurtesen@ispro.net.tr> - Turkish language | |||
Mario Blättermann <mario.blaettermann@gmail.com> - German language | Andreas Piek <a.piesk@gmx.net> - German language | |||
Javier Polo Cózar <jpcozar@yahoo.es> - Spanish language | Fred Pacquier <fredp@dial.oleane.com> - French language | |||
Benno Schulenberg <benno@vertaalt.nl> - Dutch language | Leonardo A. D'Angelo <ldangelo@san-cayetano.com> - Spanish language | |||
Seth Mos <stimpy@stimpy.multiweb.nl> - Dutch language | ||||
Milos Prudek <prudek@nembv.cz> - Czech language | Milos Prudek <prudek@nembv.cz> - Czech language | |||
V Gatut Harijiso <gatut@student.unpar.ac.id> - Indonesian language | Dima I. Allaverdov <allav@ur.rags.ru> - Russian_windows1251 la | |||
Ivan Minchev <vanko@uni-svishtov.bg> - Bulgarian_windows1251 | nguage | |||
language | V Gatut Harijiso <gatut@student.unpar.ac.id> - Indonesian language | |||
Akira Kitamura <click@anet.ne.jp> - Japanese language | Ivan Minchev <vanko@uni-svishtov.bg> - Bulgarian_windows1251 l | |||
Мирослав Николић <miroslavnikolic@rocketmail.com> - Serbian language | anguage | |||
Juris Valdovskis <juris@dc.lv> - Latvian language | Akira Kitamura <click@anet.ne.jp> - Japanese language | |||
Jordan Kanev <dancho@globcom.net> - Bulgarian language fix | Radovan Drobnjakovic <admin.rts@rts.co.yu> - Serbian language | |||
Michał Trzebiatowski <hippie_1968@hotmail.com> - Polish language | Pieter Kooistra <pkooistra@hr.nl> - Dutch language fix | |||
Adi Cretu <adi@usv.ro> - Romanian language | Andrew Okhmat <andy@crgu.com> - Russian Koi8 language f | |||
Roman Vynar <rvynar@icqmail.com> - Ukrainian_windows1251 | ixed | |||
language | Nikolai V. Ivanyushin <koko@infocenter.bryansk.ru> - Russian and Bulgarian l | |||
Andreu Sanchez <tanis@lleida.com> - Catalan language | anguage fix | |||
Antonis Maglaras <vegos@magla.gr> - Greek language | Juris Valdovskis <juris@auce.lv> - Latvian language | |||
Dusan Woletz <Dusan.WOLETZ@orange.sk> - Slovak Language | Jordan Kanev <dancho@globcom.net> - Bulgarian language fix | |||
Javier Polo Cózar <jpcozar@yahoo.es> - Spanish language fix | Wszebor Boksa <Wszebor_Boksa@koncept.pl> - Polish language | |||
Josef Karliak <karliak@ajetaci.cz> - Czech UTF-8 | Adi Cretu <adi@usv.ro> - Romanian language | |||
Joe Hansen <joedalton2 AT yahoo DOT dk> - Danish language | Roman Vynar <rvynar@icqmail.com> - Ukrainian_windows1251 l | |||
Marcio Fernandes da Costa <marciofoz AT gmail DOT com> - Brazilian Portuguese l | anguage | |||
anguage | Andreu Sanchez <tanis@lleida.com> - Catalan language | |||
Antonis Maglaras <vegos@magla.gr> - Greek language | ||||
Dusan Woletz <Dusan.WOLETZ@orange.sk> - Slovak Language | ||||
Jose Luis Hernandez <jhdz@simbiotica.net> - Spanish language fix | ||||
Theo kastermans <t.kastermans@zandvoort.nl> - Dutch language fix | ||||
Alex Deiter <tiamat@komi.mts.ru> - Russian UTF-8 language | ||||
Josef Karliak <karliak@ajetaci.cz> - Czech UTF-8 | ||||
Igor Ageikin <iageikin@lipen.elektra.ru> - Russian UTF-8 fix | ||||
Suggestions or remarks | Suggestions or remarks | |||
---------------------- | ---------------------- | |||
Any suggests or comments may be posted on the forum | Any suggests or comments may be posted on the forum | |||
http://sourceforge.net/projects/sarg/forums/forum/363374 or sent to Frederic Mar chal | http://sourceforge.net/projects/sarg/forums/forum/363374 or sent to Frederic Mar chal | |||
(fmarchal@users.sourceforge.net) | (fmarchal@users.sourceforge.net) | |||
End of changes. 8 change blocks. | ||||
58 lines changed or deleted | 42 lines changed or added |