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

    Пакет - Sarg, проблемы с формированием отчета п

    Scheduled Pinned Locked Moved Russian
    13 Posts 3 Posters 2.7k 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.
    • A
      Angel_19
      last edited by

      Установил пакет Sarg.
      Настроил.
      Если папка с отчетами пустая, или нажимаю кнопку: Force update now - то очет создается исправно!
      Но если подождать пока сработает расписание, то отчет не удается просмотреть, а в логах выдает сообщение:

      php: sarg.php: The command 'export LC_ALL=C && /usr/pbi/sarg-i386/bin/sarg ' returned exit code '1', the output was 'SARG: Records in file: 19322, reading: 0.00%^MSARG: Records in file: 5000, reading: 25.88%^MSARG: Records in file: 10000, reading: 51.75%^MSARG: Records in file: 15000, reading: 77.63%^MSARG: cannot open /usr/local/sarg-reports/2016/03/17/sarg-date for writing SARG:: No such file or directory SARG: Records in file: 19322, reading: 100.00%'

      Как побороть?

      1 Reply Last reply Reply Quote 0
      • werterW
        werter
        last edited by

        Вот это php: sarg.php: The command 'export LC_ALL=C && /usr/pbi/sarg-i386/bin/sarg ' returned exit code '1'  в гугл.

        1 Reply Last reply Reply Quote 0
        • A
          Angel_19
          last edited by

          Ничего толком не нахожу, кроме как:

          For those who still cannot get it working please remember follow the instructions for your version 32 bit or 64 bit

          32 bit

          1. Reinstall Sarg Pkg

          2. rm -rf /usr/local/sarg-reports

          3. ln -s /usr/pbi/sarg-i386/local/sarg-reports /usr/local/sarg-reports

          64 bit

          1. Reinstall Sarg Pkg

          2. rm -rf /usr/local/sarg-reports

          3. ln -s /usr/pbi/sarg-amd64/local/sarg-reports /usr/local/sarg-reports

          Но как я понял это уже внесено в пакет и не требуется этого делать.

          1 Reply Last reply Reply Quote 0
          • A
            Angel_19
            last edited by

            Проблема как я думаю в этом:

            cannot open /usr/local/sarg-reports/2016/03/17/sarg-date for writing SARG:: No such file or directory

            Т.к. после Force update now нет папки /usr/local/sarg-reports/2016/03/17 , но зато есть папка: /usr/local/sarg-reports/2016/03/17.1

            Т.е. устанавливаем пакет, настраиваем, нажимаем: Force update now , в папке с отчетом создается отчет, в том числе папка: /usr/local/sarg-reports/2016/03/17.1 , когда срабатывает время по расписанию, идет попытка писать в папку: /usr/local/sarg-reports/2016/03/17 которой конечно же нет.

            Как все таки решить проблему?

            1 Reply Last reply Reply Quote 0
            • 0
              0ppa
              last edited by

              @Angel_19:

              Проблема как я думаю в этом:

              cannot open /usr/local/sarg-reports/2016/03/17/sarg-date for writing SARG:: No such file or directory

              Т.к. после Force update now нет папки /usr/local/sarg-reports/2016/03/17 , но зато есть папка: /usr/local/sarg-reports/2016/03/17.1

              Т.е. устанавливаем пакет, настраиваем, нажимаем: Force update now , в папке с отчетом создается отчет, в том числе папка: /usr/local/sarg-reports/2016/03/17.1 , когда срабатывает время по расписанию, идет попытка писать в папку: /usr/local/sarg-reports/2016/03/17 которой конечно же нет.

              Как все таки решить проблему?

              Думаю вам нужно было скинуть скриншоты настроек вашего прокси сервера и самого сарга, для начала.

              1 Reply Last reply Reply Quote 0
              • werterW
                werter
                last edited by

                http://www.webkeydesign.com/416/fix-sarg-reports-in-pfsense/

                1 Reply Last reply Reply Quote 0
                • A
                  Angel_19
                  last edited by

                  @werter:

                  http://www.webkeydesign.com/416/fix-sarg-reports-in-pfsense/

                  Там описана другая ошибка. Но настройки из статьи я все-таки проверил - они верные.

                  Решил проблему изменив настройки: Status: Sarg Settings -> General -> Report Options , т.к. те что по умолчанию стояли вызывают ошибку.
                  Сейчас работает нормально, кроме одного глюка, когда начинаю просмотр отчета,  там выводит год 2016 и размер трафика, вот размер трафика показывает неверно, а далее вроде как все в порядке.

                  1 Reply Last reply Reply Quote 0
                  • werterW
                    werter
                    last edited by

                    Решил проблему изменив настройки: Status: Sarg Settings -> General -> Report Options , т.к. те что по умолчанию стояли вызывают ошибки

                    Скрин того, что меняли можно ?

                    1 Reply Last reply Reply Quote 0
                    • A
                      Angel_19
                      last edited by

                      Как раз делаю.

                      sarg1.png
                      sarg1.png_thumb

                      1 Reply Last reply Reply Quote 0
                      • A
                        Angel_19
                        last edited by

                        Расписание:

                        sarg2.png
                        sarg2.png_thumb

                        1 Reply Last reply Reply Quote 0
                        • A
                          Angel_19
                          last edited by

                          Пример отчета:

                          sarg3.png
                          sarg3.png_thumb
                          sarg4.png
                          sarg4.png_thumb

                          1 Reply Last reply Reply Quote 0
                          • werterW
                            werter
                            last edited by

                            А что в настр. по-умолчанию было ? Какие пункты меняли ?

                            1 Reply Last reply Reply Quote 0
                            • A
                              Angel_19
                              last edited by

                              По умолчанию так:

                              sarg_def.png
                              sarg_def.png_thumb

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