[resolvido] SARG não gera os relatórios (Squid + SquidGuard)



  • Pessoal, meu SARG não gera os relatórios (via console não mostra nenhum erro)

    Vou postar minhas configurações

    Abaixo o Log de execução manual:

    [2.2.2-RELEASE][root@easyscprx01.easysa.local]/usr/local/sarg-reports: sarg -x -d date +%d/%m/%Y
    SARG: Init
    SARG: Loading configuration from /usr/local/etc/sarg/sarg.conf
    SARG: Loading exclude host file from: /usr/pbi/sarg-i386/etc/sarg/exclude_hosts.conf
    SARG: Loading exclude file from: /usr/pbi/sarg-i386/etc/sarg/exclude_users.conf
    SARG: Reading host alias file "/usr/pbi/sarg-i386/etc/sarg/hostalias"
    SARG: List of host names to alias:
    SARG: Parameters:
    SARG:          Hostname or IP address (-a) =
    SARG:                    Useragent log (-b) =
    SARG:                    Exclude file (-c) = /usr/pbi/sarg-i386/etc/sarg/exclude_hosts.conf
    SARG:                  Date from-until (-d) = 12/08/2015-12/08/2015
    SARG:    Email address to send reports (-e) =
    SARG:                      Config file (-f) = /usr/local/etc/sarg/sarg.conf
    SARG:                      Date format (-g) = Europe (dd/mm/yyyy)
    SARG:                        IP report (-i) = No
    SARG:            Keep temporary files (-k) = No
    SARG:                        Input log (-l) = /var/squid/logs/access.log
    SARG:              Resolve IP Address (-n) = No
    SARG:                      Output dir (-o) = /usr/local/sarg-reports/
    SARG: Use Ip Address instead of userid (-p) = No
    SARG:                    Accessed site (-s) =
    SARG:                            Time (-t) =
    SARG:                            User (-u) =
    SARG:                    Temporary dir (-w) = /tmp/sarg
    SARG:                  Debug messages (-x) = Yes
    SARG:                Process messages (-z) = No
    SARG:  Previous reports to keep (–lastlog) = 0
    SARG:
    SARG: sarg version: 2.3.9 Sep-21-2014
    SARG: Reading access log file: /var/squid/logs/access.log
    SARG: Records in file: 8914878, reading: 100.00%
    SARG:    Records read: 8914989, written: 34117, excluded: 0
    SARG: Squid log format
    SARG: Period covered by log files: 12/08/2015-12/08/2015
    SARG: Period: 12 Aug 2015
    SARG: File /usr/local/sarg-reports/12Aug2015-12Aug2015 already exists, moved to /usr/local/sarg-reports/12Aug2015-12Aug2015.3
    SARG: Sorting log /tmp/sarg/192_168_88_115.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_6.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_105.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_103.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_4.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_13.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_11.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_104.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_8.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_106.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_2.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_114.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_10.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_138.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_5.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_108.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_116.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_36.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_133.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_119.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_101.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_112.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_109.user_unsort
    SARG: Sorting log /tmp/sarg/192_168_88_146.user_unsort
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Reading redirector log file /var/squidGuard/log/block.log
    SARG: Sorting file: /tmp/sarg/redirector.int_log
    SARG: Making index.html
    SARG: Successful report generated on /usr/local/sarg-reports/12Aug2015-12Aug2015
    SARG: Purging temporary file sarg-general
    SARG: End
    [2.2.2-RELEASE][root@easyscprx01.easysa.local]/usr/local/sarg-reports: ls -lpa
    total 4
    drwxr-xr-x  2 root  wheel  512 Aug  3 15:22 ./
    drwxr-xr-x  19 root  wheel  512 Aug  3 12:01 ../
    [2.2.2-RELEASE][root@easyscprx01.easysa.local]/usr/local/sarg-reports:



  • amigo, veja se a pasta:

    /usr/local/sarg-reports

    está vazia… se sim veja depois se os logs estão em:

    /usr/pbi/sarg-amd64/local/sarg-reports

    se os logs estiveram nesse diretório acima, faça

    rm -r /usr/local/sarg-reports
    ln -s /usr/pbi/sarg-amd64/local/sarg-reports /usr/local/sarg-reports

    vlw





  • @nerdsv8:

    Esse link resolveu meu problema

    https://forum.pfsense.org/index.php?topic=89485.msg495124#msg495124

    Obrigado.. achei a solução onde me indicou.