Sarg: puste logi - Lenny
: 23 lutego 2010, 13:52
Zainstalowałem squida i sarga.
Z pomocą poradnika z sieci ułożyłem squid.conf:
Po odpaleniu sarga z Webmina 1.5 otrzymuję:
Dlaczego? Pomożecie?
Z pomocą poradnika z sieci ułożyłem squid.conf:
Kod: Zaznacz cały
#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 [email]admin@domena.pl[/email]
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 [url]www.domena.pl[/url]
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
Kod: Zaznacz cały
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.