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

    Sarg package for pfsense

    Scheduled Pinned Locked Moved pfSense Packages
    467 Posts 99 Posters 563.2k 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.
    • D
      ddimick
      last edited by

      @KOM:

      Try this from the shell:

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

      Use ln -s /usr/pbi/sarg-amd64/local/sarg-reports /usr/local/sarg-reports if you have 64-bit build.

      Fixed for me as well, had to perform on a brand new install.

      1 Reply Last reply Reply Quote 0
      • P
        paracetamol
        last edited by

        Hi,
        My SARG schedule work  half time:
        First schedule is ok
        Second run i have this error:

        SARG: Period: 24 Dec 2015
        SARG: File /usr/local/sarg-reports/2015/12/24 already exists, moved to /usr/local/sarg-reports/2015/12/24.2
        SARG: cannot open /usr/local/sarg-reports/2015/12/24/sarg-date for writing
        SARG:: No such file or directory

        third run is OK

        Have you an idea ??

        Thanks

        1 Reply Last reply Reply Quote 0
        • marcellocM
          marcelloc
          last edited by

          Select overwrite reports on settings tab.

          Treinamentos de Elite: http://sys-squad.com

          Help a community developer! ;D

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

            Can anybody tell me if it would be possible to setup Sarg to email the the reports in a viewable format? Maybe some sort of a cron job could do this?

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

              Hi

              pfSense 2.2.6
              I received the following error message:

              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: 1732, reading: 0.00%^MSARG: cannot open /usr/local/sarg-reports/2016/03/21/sarg-date for writing SARG:: No such file or directory SARG: Records in file: 1732, reading: 100.00%'

              What could be the problem?

              1 Reply Last reply Reply Quote 0
              • N
                Nytridr
                last edited by

                Its been discontinued.

                https://forum.pfsense.org/index.php?topic=110405.msg614621#msg614621

                1 Reply Last reply Reply Quote 0
                • S
                  spiv
                  last edited by

                  How do i remove Sarg on pfsense 2.3
                  Any command that i can type to remove it. I can see the menu link and keep on having crash report on the package. Please look at the attached screenshot.

                  sarg1.png
                  sarg1.png_thumb
                  sarg2.png
                  sarg2.png_thumb

                  1 Reply Last reply Reply Quote 0
                  • S
                    speedup
                    last edited by

                    @spiv:

                    How do i remove Sarg on pfsense 2.3
                    Any command that i can type to remove it. I can see the menu link and keep on having crash report on the package. Please look at the attached screenshot.

                    I have some problem too. anybody help?

                    un 24 12:00:00 	php 		/usr/local/www/sarg.php: The command 'export LC_ALL=C && /usr/local/bin/sarg -d `date +%d/%m/%Y`' returned exit code '127', the output was '/usr/local/bin/sarg: not found' 
                    
                    1 Reply Last reply Reply Quote 0
                    • S
                      speedup
                      last edited by

                      no one help?

                      1 Reply Last reply Reply Quote 0
                      • N
                        Nachtfalke
                        last edited by

                        Don't know what the correct way ist, but you should:

                        
                        rm -rf /usr/local/pkg/sarg*
                        rm -rf /usr/local/www/sarg*
                        
                        

                        Don't know exactly where the reports are stored so probably first search for them and then delete these folders.

                        search:

                        
                        find / -iname "*sarg*"
                        
                        

                        Then remove it with "rm -rf"

                        Further install "cron" package and then delete all existing cronjobs which contain something with "sarg" in it.

                        Delete the remaining "sarg" entries from your config. In my environment this is:

                        
                        vi /cf/conf/config.xml
                        
                        

                        There I deleted the pars beginning/ending with:

                        
                        <sarg></sarg>
                        <sarguser></sarguser>
                        <sargschedule></sargschedule>
                        <sargrealtime></sargrealtime>
                        
                        

                        So after rebooting everything should be ok. Of courxe, please crwate a backup of the configu before you start deleting something.

                        Regards.

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

                          It is an awesome tool, sad it is not available now.

                          1 Reply Last reply Reply Quote 0
                          • Y
                            yosvany.ramos @marcelloc
                            last edited by

                            @marcelloc

                            Hello, Marcelo:

                            Do you know how to install SARG in
                            Hello, Marcelo:

                            Do you know how to install SARG in pfsense 2.4.4, FreeBSD 11.2-RELEASE-p3 ?

                            Thanks,
                            Yosvany

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