|
|
|
|
Sarg: puste logi - Lenny
tomeq77 - 23-02-2010 13:52
Zainstalowałem squida i sarga. Z pomocą poradnika z sieci ułożyłem squid.conf:
#ilosc ramu: cache_mem 64 MB #maksymalny plik zapisywany na dysku: store_avg_object_size 256 kB cache_access_log /var/log/squid/access.log ##################################################### #tutaj podajesz siec acl all src 192.168.0.0/255.255.255.0
# tutaj wpisujesz wszystkich userow acl user3 src 192.168.0.3 acl user3 src 192.168.0.4 ... acl user253 src 192.168.0.253 acl user254 src 192.168.0.254
acl localhost src 127.0.0.1/255.255.255.255 acl SSL_ports port 443 563 acl Safe_ports port 21 70 80 210 443 563 1025-65535 acl CONNECT method CONNECT ##################################################### #tutaj wpisujesz userow ktorym chodza strony www http_access allow user3 http_access allow user3 ... http_access allow user253 http_access allow user254 ##################################################### icp_access allow all miss_access allow all cache_mgr admin@domena.pl http_port 3128 #httpd_accel_host virtual #httpd_accel_port 80 #httpd_accel_with_proxy on #httpd_accel_uses_host_header on error_directory /usr/share/squid/errors/Polish visible_hostname www.domena.pl log_fqdn on log_mime_hdrs on ident_lookup_access allow all localhost SSL_ports Safe_ports CONNECT
#1000 oznacza 1000mb dysku dla squida cache_dir ufs /var/spool/squid 500 16 256
Po odpaleniu sarga z Webmina 1.5 otrzymuję:
Now generating Sarg report from Squid log file /var/log/squid/access.log and all rotated versions ..
sarg -l /var/log/squid/access.log SARG: No records found SARG: End sarg -l /var/log/squid/access.log.1 SARG: No records found SARG: End sarg -l /var/log/squid/access.log.2.gz SARG: Decompressing log file: /var/log/squid/access.log.2.gz > /tmp/sarg-file.in (zcat) SARG: No records found SARG: End
.. Sarg finished, but no report was generated. See the output above for details.
Dlaczego? Pomożecie?
mendeczka - 24-02-2010 08:14
Pomyśl troszeczkę!
W pliku konfiguracyjnym znalazłem coś takiego:
# LOGFILE PATHNAMES AND CACHE DIRECTORIES # -----------------------------------------------------------------------------
cache_dir ufs /var/spool/squid 100 16 256
# #logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt #logformat squidmime %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt [%>h] [%<h] #logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh #logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh # access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log cache_store_log /var/log/squid/store.log
Już chyba bardziej naprowadzić Cię nie mogę.
Ewentualnie RTFM
zanotowane.pldoc.pisz.plpdf.pisz.plminister.pev.pl
|
|
|
|