Pessoal boa tarde<div><br></div><div>Estou usando o CentOS 5.7 32b com o squid 2.6 e com o sarg 2.3.1.1 e estou com esta mensagem de erro:</div><div><br></div><div><div><font color="#ff0000">sarg -f /etc/sarg/sarg.conf </font></div>
<div><font color="#ff0000">SARG: Records in file: 78847, reading: 100,00%</font></div><div><font color="#ff0000">SARG: (grepday) Fontname /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf not found</font></div><div><br>
</div><div>Eu ja instalei esta fonte, ja coloquei ela no caminho que ela fala que nao encontra...ja coloquei na pasta fonts do sarg, e nada</div><div><br></div><div>segue conf do sarg</div><div><br></div><div>===========================</div>
<div><div><font color="#ff0000"># sarg.conf</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000"># TAG: access_log file</font></div><div><font color="#ff0000"># Where is the access.log file</font></div>
<div><font color="#ff0000"># sarg -l file</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">#access_log /usr/local/squid/var/logs/access.log</font></div><div><font color="#ff0000">access_log /var/log/squid/access.log</font></div>
<div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: graphs yes|no</font></div><div><font color="#ff0000"># Use graphics where is possible.</font></div><div><font color="#ff0000"># graph_days_bytes_bar_color blue|green|yellow|orange|brown|red</font></div>
<div><font color="#ff0000">#</font></div><div><font color="#ff0000">#graphs yes</font></div><div><font color="#ff0000">#graph_days_bytes_bar_color orange</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: graph_font</font></div>
<div><font color="#ff0000"># The full path to the TTF font file to use to create the graphs. It is required</font></div><div><font color="#ff0000"># if graphs is set to yes.</font></div><div><font color="#ff0000">#</font></div>
<div><font color="#ff0000">graph_font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: title</font></div><div><font color="#ff0000"># Especify the title for html page.</font></div>
<div><font color="#ff0000">#</font></div><div><font color="#ff0000">title "Squid User Access Reports"</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: font_face</font></div>
<div><font color="#ff0000"># Especify the font for html page.</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">font_face Tahoma,Verdana,Arial</font></div><div><font color="#ff0000"><br>
</font></div><div><font color="#ff0000"># TAG: header_color</font></div><div><font color="#ff0000"># Especify the header color</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">#header_color darkblue</font></div>
<div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: header_bgcolor</font></div><div><font color="#ff0000"># Especify the header bgcolor</font></div><div><font color="#ff0000">#</font></div>
<div><font color="#ff0000">#header_bgcolor blanchedalmond</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: font_size</font></div><div><font color="#ff0000"># Especify the text font size</font></div>
<div><font color="#ff0000">#</font></div><div><font color="#ff0000">#font_size 9px</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: header_font_size</font></div><div><font color="#ff0000"># Especify the header font size</font></div>
<div><font color="#ff0000">#</font></div><div><font color="#ff0000">#header_font_size 9px</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: title_font_size</font></div><div><font color="#ff0000"># Especify the title font size</font></div>
<div><font color="#ff0000">#</font></div><div><font color="#ff0000">#title_font_size 11px</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: background_color</font></div><div><font color="#ff0000"># TAG: background_color</font></div>
<div><font color="#ff0000"># Html page background color</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000"># background_color white</font></div><div><font color="#ff0000"><br></font></div>
<div><font color="#ff0000"># TAG: text_color</font></div><div><font color="#ff0000"># Html page text color</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">#text_color #000000</font></div>
</div><div><div><font color="#ff0000"># TAG: text_bgcolor</font></div><div><font color="#ff0000"># Html page text background color</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">#text_bgcolor lavender</font></div>
<div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: title_color</font></div><div><font color="#ff0000"># Html page title color</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">#title_color green</font></div>
<div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: logo_image</font></div><div><font color="#ff0000"># Html page logo.</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">#logo_image none</font></div>
<div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: logo_text</font></div><div><font color="#ff0000"># Html page logo text.</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">#logo_text ""</font></div>
<div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: logo_text_color</font></div><div><font color="#ff0000"># Html page logo texti color.</font></div><div><font color="#ff0000">#</font></div>
<div><font color="#ff0000">#logo_text_color #000000</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: logo_image_size</font></div><div><font color="#ff0000"># Html page logo image size. </font></div>
<div><font color="#ff0000"># width height</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">#image_size 80 45</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: background_image</font></div>
<div><font color="#ff0000"># Html page background image</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">#background_image none</font></div><div><font color="#ff0000"><br></font></div>
<div><font color="#ff0000"># TAG: password</font></div><div><font color="#ff0000"># User password file used by Squid authentication scheme</font></div><div><font color="#ff0000"># If used, generate reports just for that users.</font></div>
<div><font color="#ff0000">#</font></div><div><font color="#ff0000">#password none</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: temporary_dir</font></div><div><font color="#ff0000"># Temporary directory name for work files</font></div>
<div><font color="#ff0000"># sarg -w dir</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">#temporary_dir /tmp</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: output_dir</font></div>
<div><font color="#ff0000"># The reports will be saved in that directory</font></div><div><font color="#ff0000"># sarg -o dir</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">#output_dir /var/www/html/squid-reports</font></div>
<div><font color="#ff0000">output_dir /var/www/sarg/ONE-SHOT</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: output_email</font></div><div><font color="#ff0000"># Email address to send the reports. If you use this tag, no html reports will be generated.</font></div>
<div><font color="#ff0000"># sarg -e email</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">#output_email none</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: resolve_ip yes/no</font></div>
<div><font color="#ff0000"># Convert ip address to dns name</font></div><div><font color="#ff0000"># sarg -n</font></div><div><font color="#ff0000">#resolve_ip no</font></div><div><font color="#ff0000">resolve_ip yes</font></div>
</div><div><div><font color="#ff0000"># TAG: user_ip yes/no</font></div><div><font color="#ff0000"># Use Ip Address instead userid in reports.</font></div><div><font color="#ff0000"># sarg -p</font></div><div>
<font color="#ff0000">#user_ip no</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: topuser_sort_field field normal/reverse</font></div><div><font color="#ff0000"># Sort field for the Topuser Report.</font></div>
<div><font color="#ff0000"># Allowed fields: USER CONNECT BYTES TIME</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">#topuser_sort_field BYTES reverse</font></div><div><font color="#ff0000"><br>
</font></div><div><font color="#ff0000"># TAG: user_sort_field field normal/reverse</font></div><div><font color="#ff0000"># Sort field for the User Report.</font></div><div><font color="#ff0000"># Allowed fields: SITE CONNECT BYTES TIME</font></div>
<div><font color="#ff0000">#</font></div><div><font color="#ff0000">#user_sort_field BYTES reverse</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: exclude_users file</font></div>
<div><font color="#ff0000"># users within the file will be excluded from reports.</font></div><div><font color="#ff0000"># you can use indexonly to have only index.html file.</font></div><div><font color="#ff0000">#</font></div>
<div><font color="#ff0000">#exclude_users none</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: exclude_hosts file</font></div><div><font color="#ff0000"># Hosts, domains or subnets will be excluded from reports.</font></div>
<div><font color="#ff0000">#</font></div><div><font color="#ff0000"># Eg.: 192.168.10.10 - exclude ip address only</font></div><div><font color="#ff0000"># <a href="http://192.168.10.0/24">192.168.10.0/24</a> - exclude full C class</font></div>
<div><font color="#ff0000"># s1.acme.foo - exclude hostname only</font></div><div><font color="#ff0000"># *.acme.foo - exclude full domain name</font></div><div><font color="#ff0000">#</font></div>
<div><font color="#ff0000">#exclude_hosts none</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: useragent_log file</font></div><div><font color="#ff0000"># useragent.log file patch to generate useragent report.</font></div>
<div><font color="#ff0000">#</font></div><div><font color="#ff0000">#useragent_log none</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: date_format</font></div><div><font color="#ff0000"># Date format in reports: e (European=dd/mm/yy), u (American=mm/dd/yy), w (Weekly=yy.ww)</font></div>
<div><font color="#ff0000"># </font></div><div><font color="#ff0000">#date_format u</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: per_user_limit file MB</font></div><div>
<font color="#ff0000"># Saves userid on file if download exceed n MB.</font></div><div><font color="#ff0000"># This option allow you to disable user access if user exceed a download limit.</font></div><div><font color="#ff0000"># </font></div>
<div><font color="#ff0000">#per_user_limit none</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: lastlog n</font></div><div><font color="#ff0000"># How many reports files must be keept in reports directory.</font></div>
<div><font color="#ff0000"># The oldest report file will be automatically removed.</font></div><div><font color="#ff0000"># 0 - no limit.</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">#lastlog 0</font></div>
<div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: remove_temp_files yes</font></div><div><font color="#ff0000"># Remove temporary files: geral, usuarios, top, periodo from root report directory.</font></div>
<div><font color="#ff0000">#</font></div><div><font color="#ff0000">#remove_temp_files yes</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: index yes|no|only</font></div><div><font color="#ff0000"># Generate the main index.html.</font></div>
<div><font color="#ff0000"># only - generate only the main index.html</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">index yes</font></div></div><div><div><font color="#ff0000">#</font></div>
<div><font color="#ff0000">#index_tree file</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: overwrite_report yes|no</font></div><div><font color="#ff0000"># yes - if report date already exist then will be overwrited.</font></div>
<div><font color="#ff0000"># no - if report date already exist then will be renamed to filename.n, filename.n+1</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">#overwrite_report no</font></div>
<div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: records_without_userid ignore|ip|everybody</font></div><div><font color="#ff0000"># What can I do with records without user id (no authentication) in access.log file ?</font></div>
<div><font color="#ff0000">#</font></div><div><font color="#ff0000"># ignore - This record will be ignored.</font></div><div><font color="#ff0000"># ip - Use ip address instead. (default)</font></div><div><font color="#ff0000"># everybody - Use "everybody" instead.</font></div>
<div><font color="#ff0000">#</font></div><div><font color="#ff0000">#records_without_userid ip</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: use_comma no|yes</font></div><div><font color="#ff0000"># Use comma instead point in reports.</font></div>
<div><font color="#ff0000"># Eg.: use_comma yes => 23,450,110</font></div><div><font color="#ff0000"># use_comma no => 23.450.110</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">#use_comma no</font></div>
<div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: mail_utility</font></div><div><font color="#ff0000"># Mail command to use to send reports via SMTP. Sarg calls it like this:</font></div><div>
<font color="#ff0000"># mail_utility -s "SARG report, date" "output_email" <"mail_content"</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000"># Therefore, it is possible to add more arguments to the command by specifying them</font></div>
<div><font color="#ff0000"># here.</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000"># If you need too, you can use a shell script to process the content of /dev/stdin</font></div><div>
<font color="#ff0000"># (/dev/stdin is the mail_content passed by sarg to the script) and call whatever</font></div><div><font color="#ff0000"># command you like. It is not limited to mailing the report via SMTP.</font></div>
<div><font color="#ff0000">#</font></div><div><font color="#ff0000"># Don't forget to quote the command if necessary (i.e. if the path contains</font></div><div><font color="#ff0000"># characters that must be quoted).</font></div>
<div><font color="#ff0000">#</font></div><div><font color="#ff0000">#mail_utility mailx</font></div><div><font color="#ff0000">mail_utility mail</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: topsites_num n</font></div>
<div><font color="#ff0000"># How many sites in topsites report.</font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">#topsites_num 100</font></div><div><font color="#ff0000"><br></font></div>
<div><font color="#ff0000"># TAG: topsites_sort_order CONNECT|BYTES A|D</font></div><div><font color="#ff0000"># Sort for topsites report, where A=Ascendent, D=Descendent</font></div><div><font color="#ff0000">#</font></div>
<div><font color="#ff0000">#topsites_sort_order CONNECT D</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: index_sort_order A/D</font></div><div><font color="#ff0000"># Sort for index.html, where A=Ascendent, D=Descendent</font></div>
<div><font color="#ff0000">#</font></div><div><font color="#ff0000">#index_sort_order D</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: exclude_codes file</font></div><div><font color="#ff0000"># Ignore records with these codes. Eg.: NONE/400</font></div>
<div><font color="#ff0000"># Write one code per line. Lines starting with a # are ignored.</font></div><div><font color="#ff0000"># Only codes matching exactly one of the line is rejected. The</font></div><div><font color="#ff0000"># comparison is not case sensitive.</font></div>
<div><font color="#ff0000">#</font></div><div><font color="#ff0000">#exclude_codes /usr/local/sarg/exclude_codes</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: replace_index string</font></div>
<div><font color="#ff0000"># Replace "index.html" in the main index file with this string</font></div><div><font color="#ff0000"># If null "index.html" is used </font></div></div><div><div><font color="#ff0000">#replace_index <?php echo str_replace(".", "_", $REMOTE_ADDR); echo ".html"; ?></font></div>
<div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: max_elapsed milliseconds</font></div><div><font color="#ff0000"># If elapsed time is recorded in log is greater than max_elapsed use 0 for elapsed time.</font></div>
<div><font color="#ff0000"># Use 0 for no checking </font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">#max_elapsed 28800000</font></div><div><font color="#ff0000"># 8 Hours</font></div><div>
<font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: report_type type</font></div><div><font color="#ff0000"># What kind of reports to generate.</font></div><div><font color="#ff0000"># topusers - users, sites, times, bytes, connects, links to accessed sites, etc</font></div>
<div><font color="#ff0000"># topsites - site, connect and bytes report</font></div><div><font color="#ff0000"># sites_users - users and sites report</font></div><div><font color="#ff0000"># users_sites - accessed sites by the user report</font></div>
<div><font color="#ff0000"># date_time - bytes used per day and hour report</font></div><div><font color="#ff0000"># denied - denied sites with full URL report</font></div><div><font color="#ff0000"># auth_failures - autentication failures report</font></div>
<div><font color="#ff0000"># site_user_time_date - sites, dates, times and bytes report</font></div><div><font color="#ff0000"># downloads - downloads per user report</font></div><div><font color="#ff0000">#</font></div>
<div><font color="#ff0000"># Eg.: report_type topsites denied </font></div><div><font color="#ff0000">#</font></div><div><font color="#ff0000">#report_type topusers topsites sites_users users_sites date_time denied auth_failures site_user_time_date downloads</font></div>
<div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: usertab filename</font></div><div><font color="#ff0000"># You can change the "userid" or the "ip address" to be a real user name on the reports.</font></div>
<div><font color="#ff0000"># If resolve_ip is active, the ip address is resolved before being looked up into this</font></div><div><font color="#ff0000"># file. That is, if you want to map the ip address, be sure to set resolv_ip to no or</font></div>
<div><font color="#ff0000"># the resolved name will be looked into the file instead of the ip address. Note that</font></div><div><font color="#ff0000"># it can be used to resolve any ip address known to the dns and then map the unresolved</font></div>
<div><font color="#ff0000"># ip addresses to a name found in the usertab file.</font></div><div><font color="#ff0000"># Table syntax:</font></div><div><font color="#ff0000"># userid name or ip address name</font></div>
<div><font color="#ff0000"># Eg:</font></div><div><font color="#ff0000"># SirIsaac Isaac Newton</font></div><div><font color="#ff0000"># vinci Leonardo da Vinci</font></div><div><font color="#ff0000"># 192.168.10.1 Karol Wojtyla</font></div>
<div><font color="#ff0000">#</font></div><div><font color="#ff0000"># Each line must be terminated with '\n'</font></div><div><font color="#ff0000"># If usertab have value "ldap" (case ignoring), user names</font></div>
<div><font color="#ff0000"># will be taken from LDAP server. This method as approaches for reception</font></div><div><font color="#ff0000"># of usernames from Active Didectory</font></div><div><font color="#ff0000">#</font></div>
<div><font color="#ff0000">#usertab none</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: LDAPHost hostname</font></div><div><font color="#ff0000"># FQDN or IP address of host with LDAP service or AD DC</font></div>
<div><font color="#ff0000"># default is '127.0.0.1'</font></div><div><font color="#ff0000">#LDAPHost 127.0.0.1</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: LDAPPort port</font></div>
<div><font color="#ff0000"># LDAP service port number</font></div><div><font color="#ff0000"># default is '389'</font></div><div><font color="#ff0000">#LDAPPort 389</font></div><div><font color="#ff0000"><br>
</font></div><div><font color="#ff0000"># TAG: LDAPBindDN CN=username,OU=group,DC=mydomain,DC=com</font></div><div><font color="#ff0000"># DN of LDAP user, who is authorized to read user's names from LDAP base</font></div>
<div><font color="#ff0000"># default is empty line</font></div><div><font color="#ff0000">#LDAPBindDN cn=proxy,dc=mydomain,dc=local</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: LDAPBindPW secret</font></div>
<div><font color="#ff0000"># Password of DN, who is authorized to read user's names from LDAP base</font></div><div><font color="#ff0000"># default is empty line</font></div><div><font color="#ff0000">#LDAPBindPW secret</font></div>
<div><font color="#ff0000"><br></font></div><div><font color="#ff0000"># TAG: LDAPBaseSearch OU=users,DC=mydomain,DC=com</font></div><div><font color="#ff0000"># LDAP search base</font></div><div><font color="#ff0000"># default is empty line</font></div>
<div><font color="#ff0000">#LDAPBaseSearch ou=users,dc=mydomain,dc=l</font></div></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000">.</font></div><div><font color="#ff0000">.</font></div><div><font color="#ff0000">.</font></div>
<div><font color="#ff0000">.</font></div><div><font color="#ff0000">.</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000">daki pra baixo e padrao</font></div><div><br></div><div><br></div><div>
=========================</div><div><br></div><div><br></div><div><br></div><div>Alguem sabe onde esta esse "amado" erro ?</div><div><br></div><div><br></div>-- <br>Desde já agradeço<br><br>RODRIGO GRIFFO <br>Gestor de TI<br>
27-9999-5733<br><br><a href="http://rodrigogriffo.blogspot.com" target="_blank">http://rodrigogriffo.blogspot.com</a><br>MSN: <a href="mailto:rodrigogriffo@gmail.com" target="_blank">rodrigogriffo@gmail.com</a><br>SKYPE: rodrigogriffo<br>
<br>SERVIDORES WINDOWS E LINUX<br> Squid-Samba-Iptables<br> Bloqueios de Sites <br> Monitoramento e Relatorios<br> Rede Sem Fio - WPA2 <br> Contratos de Manutençao<br>
</div>