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

    Sarg doesn't work

    Scheduled Pinned Locked Moved pfSense Packages
    20 Posts 3 Posters 8.6k 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.
    • marcellocM
      marcelloc
      last edited by

      Select all options with "yes" in description. You have no reports because I'd did not selected to create index file

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

      Help a community developer! ;D

      1 Reply Last reply Reply Quote 0
      • E
        EOC2611P
        last edited by

        Ok, i selected all options that display a "yes" as you suggested and doing it accordingly on what is written/suggested on the interface ("Sarg report options. Default values are in ( )
        If you select any option, it will be enabled on conf file.Use CTRL + click on this field"
        ), i then clicked on "Save" and went again on the "Schedule" menu, where i did force an update again and saved.
        I did repeat these action several times, but still nothing changed.
        Maybe Sarg is not sending any input to the "Conf" file or it's sending it to the wrong location???
        Thanks for your patience….

        SargSettingsAllYesHighlighted.jpg
        SargSettingsAllYesHighlighted.jpg_thumb

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

          first point, use chrome or firefox to access pfsense 2.0.1 gui.

          Second try if browser change does not work is to run sarg on console/ssh to see what erros(if any) you are getting.

          sarg -x

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

          Help a community developer! ;D

          1 Reply Last reply Reply Quote 0
          • E
            EOC2611P
            last edited by

            Right, i did try with Chrome instead of IE, the only difference that i can notice is that the text area looks smaller, so we now have a smaller problem than before :D.
            Can you tell me how to access Sarg by ssh as you wrote? The "real time" option it's still working, it just doesn't create any of the nice looking graphic reports i have seen posted around

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

              @EOC2611P:

              Can you tell me how to access Sarg by ssh as you wrote?

              • You can enable ssh on system advanced and use any ssh client(putty for example) to acess pfsense lan ip at port 22.

              • via ssh or via console, choose menu option 8.

              • run sarg or sarg -x and see what you get.

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

              Help a community developer! ;D

              1 Reply Last reply Reply Quote 0
              • E
                EOC2611P
                last edited by

                Thanks, here is what i get:

                PuttySarg.jpg
                PuttySarg.jpg_thumb

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

                  Select overwrite reports too on sarg config and try to run it again.

                  if you still get this 'could not remove' error, delete the folder using

                  rm -rf /usr/local/sarg-reports/*

                  before trying another report generation.

                  A good tip is to use suggested filter on schedule to limit the report to one day only.

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

                  Help a community developer! ;D

                  1 Reply Last reply Reply Quote 0
                  • E
                    EOC2611P
                    last edited by

                    Followed the new instructions, but the problem it's still there

                    SargPutty2.jpg
                    SargPutty2.jpg_thumb

                    1 Reply Last reply Reply Quote 0
                    • E
                      EOC2611P
                      last edited by

                      There is no way to delete the file on PFSense ??

                      _usr_local_sarg-reports.jpg
                      _usr_local_sarg-reports.jpg_thumb

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

                        try to remove sarg-reports dir and then save sarg config again

                        rm -rf /usr/local/sarg-reports

                        before saving sarg config again, check if it was deleted

                        ls /usr/local/sarg-repors

                        are you using nanobsd or full install?

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

                        Help a community developer! ;D

                        1 Reply Last reply Reply Quote 0
                        • E
                          EOC2611P
                          last edited by

                          I am using a "Full Install", a whole pc totally dedicated at PFSense and nothing else running on it.
                          After i insert the new code in Putty, there is no aknowledgement at all that something was deleted, nothing, however i can see that the folder is no longer there.
                          The problem it's still there.
                          I forced a new update, saved, re-forced, swapped a few things to see if it trigger something but nothing to do, it just recreated a new Sarg-Reports folder but it doesn't connect to the reports.
                          The Real Time option it works fine.

                          PuttySarg3.jpg
                          PuttySarg3.jpg_thumb
                          SargDiagnostics.jpg
                          SargDiagnostics.jpg_thumb
                          SargRealTime.jpg
                          SargRealTime.jpg_thumb

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

                            After removing folder, you need to apply settings(not force update now) to sarg recreate the folder.

                            After creating the folder, run sarg on console and check if it returns erros.

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

                            Help a community developer! ;D

                            1 Reply Last reply Reply Quote 0
                            • E
                              EOC2611P
                              last edited by

                              Ok, just to make sure i am doing everything right, when you write "apply" the new settings, you just mean to click on "save", right?

                              Here is the result, it seems that Sarg it's still looking for something which is not there, also, everytime the new reports's folder is created, it also bring back to life the old reports's folder which starts from the 12 of April…

                              PuttySarg4.jpg
                              PuttySarg4.jpg_thumb
                              SargReports.jpg
                              SargReports.jpg_thumb

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

                                Maybe your report file is too large and sarg could not finish it's job.

                                Include the -d date +%d/%m/%Y-date +%d/%m/%Y arg to sarg schedule to force a one day report.

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

                                Help a community developer! ;D

                                1 Reply Last reply Reply Quote 0
                                • E
                                  EOC2611P
                                  last edited by

                                  Well, i don't know, that string is exactly a copy of what is there now.
                                  What i did try in between, is to re-install Sarg = didn't work.
                                  Remove and re-install Sarg = didn't work.
                                  Install all the other 2 packages (DansGuardian & SquidGuard) to see if it was just a compatibility problem with the one that is currently using(Squid) = didn't work.
                                  So, in light of this, i think it is actually taking too much time and efforts from both of us, thank you so much anyway for trying to solve my problem, i am giving up  :-[

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

                                    EOC2611P,

                                    It maybe a missing detail, I have some sargs running on pfsense without issues.

                                    att,
                                    Marcello Coutinho

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

                                    Help a community developer! ;D

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      bctmo
                                      last edited by

                                      I just wanted to jump in and let people know if what my experience was;

                                      I installed Sarg and had the same issue.

                                      I tried all that was suggested in this thread and didn't find resolution.

                                      What seemed to work for me (and quite possibly is not the best solution) was to remove the Sarg package, connect to pfSense with WinSCP, navigate to usr/local and delete the sarg-reports directory.

                                      When I re installed the Sarg package, the reports worked fine.

                                      Just my 2c.

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