Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Instalação SquidAnalyzer

    Scheduled Pinned Locked Moved Portuguese
    130 Posts 44 Posters 51.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tomaswaldow
      last edited by

      Valeu!

      Tomas @ 2W Consultoria

      1 Reply Last reply Reply Quote 0
      • T
        tomaswaldow
        last edited by

        @leoescarpellin:

        Testei suas mudanças e correu tudo bem, fiz uma melhoria adicionando o caminho dos 2 logs diretamente no config para não precisar passar de forma manual ficou show.

        Como ficou no arquivo, testei aqui e deu erro!

        Tomas @ 2W Consultoria

        1 Reply Last reply Reply Quote 0
        • L
          leoescarpellin
          last edited by

          Da uma olhada no tutorial do primeiro post q eu atualizei com os 2 juntos

          E só separar o caminho dos 2 com uma vírgula.

          Att,
          Leonardo Escarpellin

          1 Reply Last reply Reply Quote 0
          • T
            tomaswaldow
            last edited by

            @leoescarpellin:

            Da uma olhada no tutorial do primeiro post q eu atualizei com os 2 juntos

            E só separar o caminho dos 2 com uma vírgula.

            Desculpe a burrice de não ler!!

            Tomas @ 2W Consultoria

            1 Reply Last reply Reply Quote 0
            • G
              ghostms
              last edited by

              Estou com um problema, segui os passos do howto , a aparentemente foi instalado o squid analyzer.

              Mais meu diretorio /etc/squidanalyzer/  está vazio só com uma pasta Lang que também está vazia.

              Alguma dica ai ?

              erro.png_thumb
              erro.png

              1 Reply Last reply Reply Quote 0
              • V
                verisjuliano
                last edited by

                @guitarcleiton:

                Uma pequena contribuição para quem esta na versão 2.2.6 do PFsense.

                Com a exceção ao passo 6, as demais operações são as mesmas, que por questões de segurança o make não funciona nesta versão, então executem o seguinte comando:

                sh install_all.sh
                

                na etapa 7 verifique nas linhas:

                11 - WebUrl /squidanalyzer
                …
                14 - LogFile /var/squid/logs/access.log

                caso não esteja semelhante, ou o arquivo de log seja em outro local façam o ajuste.

                att.

                guitarcleiton,

                to usando aqui o 2.2.6 mas deu a seguinte msg na hora da execução do passo 6:

                [2.2.6-RELEASE][root@pfSense.localdomain]/opt/squidanalyzer: sh install_all.sh
                cannot open install_all.sh: No such file or directory
                [2.2.6-RELEASE][root@pfSense.localdomain]/opt/squidanalyzer:

                segui os procedimentos editei o arquivo Makefile.PL porém me retorna esse erro ao executar o comando "sh install_all.sh"

                veja o meu diretório do squid analyzer:
                [2.2.6-RELEASE][root@pfSense.localdomain]/opt/squidanalyzer: ls
                ChangeLog        MANIFEST        Makefile.PL      SquidAnalyzer.pm doc              lang            resources
                INSTALL          META.yml        README          TODO            etc              packaging        squid-analyzer

                to fazendo algo errado? :/

                1 Reply Last reply Reply Quote 0
                • G
                  guitarcleiton
                  last edited by

                  @verisjuliano:

                  guitarcleiton,

                  to usando aqui o 2.2.6 mas deu a seguinte msg na hora da execução do passo 6:

                  [2.2.6-RELEASE][root@pfSense.localdomain]/opt/squidanalyzer: sh install_all.sh
                  cannot open install_all.sh: No such file or directory
                  [2.2.6-RELEASE][root@pfSense.localdomain]/opt/squidanalyzer:

                  segui os procedimentos editei o arquivo Makefile.PL porém me retorna esse erro ao executar o comando "sh install_all.sh"

                  veja o meu diretório do squid analyzer:
                  [2.2.6-RELEASE][root@pfSense.localdomain]/opt/squidanalyzer: ls
                  ChangeLog        MANIFEST        Makefile.PL      SquidAnalyzer.pm doc              lang            resources
                  INSTALL          META.yml        README          TODO            etc              packaging        squid-analyzer

                  to fazendo algo errado? :/

                  O procedimento esta correto, porem por algum motivo não existe o script "install_all.sh" em seu diretório, você pode criá-lo com o código abaixo e e executar novamente.

                  
                  #!/bin/sh
                  test ! -d "/usr/local/bin" && mkdir -p /usr/local/bin
                  test ! -d "/etc/squidanalyzer" && mkdir -p /etc/squidanalyzer
                  test ! -d "/etc/squidanalyzer/lang" && mkdir -p /etc/squidanalyzer/lang
                  test ! -d "/usr/local/www/squidanalyzer" && mkdir -p /usr/local/www/squidanalyzer
                  test ! -d "/usr/local/www/squidanalyzer/images" && mkdir -p /usr/local/www/squidanalyzer/images
                  
                  test ! -d "/usr/local/man/man3" && mkdir -p /usr/local/man/man3
                  
                  # Copy files that must not be overriden 
                  for file in squidanalyzer.conf network-aliases user-aliases excluded included; do
                  if [ -r /etc/squidanalyzer/$file ]; then
                  	install -m 644 etc/$file /etc/squidanalyzer/$file.sample
                  else
                  	install -m 644 etc/$file /etc/squidanalyzer/$file
                  fi
                  done
                  install -m 755 squid-analyzer /usr/local/bin/
                  install -m 644 resources/sorttable.js /usr/local/www/squidanalyzer/
                  install -m 644 resources/squidanalyzer.css /usr/local/www/squidanalyzer/
                  install -m 644 resources/flotr2.js /usr/local/www/squidanalyzer/
                  install -m 644 resources/images/logo-squidanalyzer.png /usr/local/www/squidanalyzer/images/
                  install -m 644 resources/images/cursor.png /usr/local/www/squidanalyzer/images/
                  install -m 644 resources/images/domain.png /usr/local/www/squidanalyzer/images/
                  install -m 644 resources/images/back-arrow.png /usr/local/www/squidanalyzer/images/
                  install -m 644 resources/images/info.png /usr/local/www/squidanalyzer/images/
                  install -m 644 resources/images/network.png /usr/local/www/squidanalyzer/images/
                  install -m 644 resources/images/user.png /usr/local/www/squidanalyzer/images/
                  install -m 644 lang/* /etc/squidanalyzer/lang/
                  pod2text doc/SquidAnalyzer.pod README
                  pod2man doc/SquidAnalyzer.pod squid-analyzer.3
                  
                  	install -m 644 squid-analyzer.3 /usr/local/man/man3/
                  
                  echo "
                  -----------------------------------------------------------------------------
                  1\. Modify your httpd.conf to allow access to HTML output like follow:
                          Alias /squidreport /usr/local/www/squidanalyzer
                          <directory usr="" local="" www="" squidanalyzer="">Options -Indexes FollowSymLinks MultiViews
                  	    AllowOverride None
                              Order deny,allow
                              Deny from all
                              Allow from 127.0.0.1</directory> 
                  2\. If necessary, give additional host access to SquidAnalyzer in httpd.conf.
                     Restart and ensure that httpd is running.
                  3\. Browse to http://my.host.dom/squidreport/ to ensure that things are working
                     properly.
                  4\. Setup a cronjob to run squid-analyzer daily:
                  
                       # SquidAnalyzer log reporting daily
                       0 2 * * * /usr/local/bin/squid-analyzer > /dev/null 2>&1
                  
                  or run it manually. For more information, see /README file.
                  -----------------------------------------------------------------------------
                  "
                  
                  

                  Analista de Sistemas
                  Bacharel em Sistemas de Informação

                  https://cleiton.tech.blog/

                  1 Reply Last reply Reply Quote 0
                  • I
                    isaiasbertin
                    last edited by

                    estou tentando no pfsense 2.2.6  e gera este erro

                    env: perl: No such file or directory

                    1 Reply Last reply Reply Quote 0
                    • L
                      leoescarpellin
                      last edited by

                      @isaiasbertin:

                      estou tentando no pfsense 2.2.6  e gera este erro

                      env: perl: No such file or directory

                      Isaias em que momento ocorre este erro?

                      Att,
                      Leonardo Escarpellin

                      1 Reply Last reply Reply Quote 0
                      • I
                        isaiasbertin
                        last edited by

                        quando rodo este comando para criar o relatorio
                        /opt/squidanalyzer/ && perl squid-analyzer -c /etc/squidanalyzer/squidanalyzer.conf

                        1 Reply Last reply Reply Quote 0
                        • L
                          leoescarpellin
                          last edited by

                          Vou fazer um teste com a versão 2.2.6 assim que eu pegar um tempo pois no momento estou apenas com a versão 2.3.1 em mãos. Aí vejo se consigo simular este erro

                          Att,
                          Leonardo Escarpellin

                          1 Reply Last reply Reply Quote 0
                          • I
                            isaiasbertin
                            last edited by

                            beleza pode ser que fiz alguma coisa errada no processo.

                            1 Reply Last reply Reply Quote 0
                            • J
                              jcn
                              last edited by

                              Bom dia,
                              Estou tentando efetuar a instalação no pfSense 2.3.1  e esta me retornando o seguinte erro:

                              install_all.sh: install: not found
                              

                              Preciso instalar algum pacote?

                              Muito obrigado

                              1 Reply Last reply Reply Quote 0
                              • D
                                diegovaz
                                last edited by

                                Tentei instalar mas o meu da esse erro:

                                make install
                                Installing blib/arch/SquidAnalyzer.pm
                                sh install_all.sh
                                install_all.sh: install: not found
                                install_all.sh: install: not found
                                install_all.sh: install: not found
                                install_all.sh: install: not found
                                install_all.sh: install: not found
                                install_all.sh: install: not found
                                install_all.sh: install: not found
                                install_all.sh: install: not found
                                install_all.sh: install: not found
                                install_all.sh: install: not found
                                install_all.sh: install: not found
                                install_all.sh: install: not found
                                install_all.sh: install: not found
                                install_all.sh: install: not found
                                install_all.sh: install: not found
                                install_all.sh: install: not found
                                install_all.sh: install: not found
                                install_all.sh: install: not found

                                –---------------------------------------------------------------------------

                                1 Reply Last reply Reply Quote 0
                                • L
                                  leoescarpellin
                                  last edited by

                                  A instalação que estão fazendo e no 2.3.1 ou no 2.2.6??

                                  Confiram se existe o install_all.sh depois de rodar o mãe

                                  Att,
                                  Leonardo Escarpellin

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    jcn
                                    last edited by

                                    @leoescarpellin:

                                    A instalação que estão fazendo e no 2.3.1 ou no 2.2.6??

                                    Confiram se existe o install_all.sh depois de rodar o mãe

                                    A minha é no 2.3.1. O make criou o arquivo, este erro me retorna na instalação. Se rodar o arquivo direto também me retorna este erro.

                                    1 Reply Last reply Reply Quote 0
                                    • L
                                      leoescarpellin
                                      last edited by

                                      Da permissão de execução no arquivo e testa denovo.

                                      chmod +× install_all.sh

                                      Depois roda o comando denovo

                                      Att,
                                      Leonardo Escarpellin

                                      1 Reply Last reply Reply Quote 0
                                      • J
                                        jcn
                                        last edited by

                                        @leoescarpellin:

                                        Da permissão de execução no arquivo e testa denovo.

                                        chmod +× install_all.sh

                                        Depois roda o comando denovo

                                        Ja tentei sem sucesso também.

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          diegovaz
                                          last edited by

                                          versao 2.3.1

                                          tamebm dei a permissao, mesmo erro.

                                          conferido  o arquivo install_all.sh esta la.

                                          1 Reply Last reply Reply Quote 0
                                          • T
                                            tomaswaldow
                                            last edited by

                                            Buenas, tive alguns problemas com o agendamento no Cron, não estava atualizando e para resolver fiz o seguinte.

                                            Ajustar arquivos:

                                            chown -R root:wheel /opt/squidanalyzer/*
                                            

                                            No Cron ajustei o comando para:

                                            /usr/local/bin/perl /opt/squidanalyzer/squid-analyzer 
                                            

                                            Fica dica para quem tiver o mesmo problema.

                                            Tomas @ 2W Consultoria

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.