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

    Sarg Not working There is a failure

    Scheduled Pinned Locked Moved pfSense Packages
    31 Posts 3 Posters 6.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.
    • M
      maverick_slo
      last edited by

      Hi!

      You can do it like this:

      /usr/local/bin/php /usr/local/www/sarg.php 0
      
      1 Reply Last reply Reply Quote 0
      • F
        firefox
        last edited by

        Where do I write this

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

          @firefox:

          Where do I write this

          via console/ssh

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

          Help a community developer! ;D

          1 Reply Last reply Reply Quote 0
          • F
            firefox
            last edited by

            Here is what I received

            Content-type: text/html
            
            

            and sarg Still not working

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

              run only sarg -x on console and see what you get.

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

              Help a community developer! ;D

              1 Reply Last reply Reply Quote 0
              • F
                firefox
                last edited by

                Here is what I received

                SARG: Init
                SARG: Loading configuration from /usr/pbi/sarg-i386/etc/sarg/sarg.conf
                SARG: (info) No graphs available as sarg was not compiled with libgd. Set "graphs" to "no" in /usr/pbi/sarg-i386/etc/sarg/sarg.conf to disable this warning
                SARG: Chaining IP resolving module "dns"
                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: Deleting temporary directory "/tmp/sarg"
                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) = 
                SARG:    Email address to send reports (-e) = 
                SARG:                      Config file (-f) = /usr/pbi/sarg-i386/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) = Yes
                SARG:                       Output dir (-o) = /usr/local/sarg-reports/
                SARG: Use Ip Address instead of userid (-p) = Yes
                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) = 24
                SARG: 
                SARG: sarg version: 2.3.6 Arp-21-2013
                SARG: Loading User table: ldap
                SARG: Cannot bind to LDAP server: Can't contact LDAP server
                
                1 Reply Last reply Reply Quote 0
                • marcellocM
                  marcelloc
                  last edited by

                  ccesario fixed it few minutes ago, reinstall the package and try again.

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

                  Help a community developer! ;D

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

                    [quote]
                    SARG: sarg version: 2.3.6 Arp-21-2013
                    SARG: Loading User table: ldap
                    SARG: Cannot bind to LDAP server: Can't contact LDAP server
                    [/quote]
                    
                    You have problems with ldap settings on sarg config too.
                    

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

                    Help a community developer! ;D

                    1 Reply Last reply Reply Quote 0
                    • F
                      firefox
                      last edited by

                      I removed and re-installed
                      And still no change

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

                        The LC_ALL error or ldap error?

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

                        Help a community developer! ;D

                        1 Reply Last reply Reply Quote 0
                        • F
                          firefox
                          last edited by

                          Do not know
                          I did not know there were two failures

                          After reinstalling
                          I still see the two screens in the image above

                          What has changed
                          I went Scheduling tab
                          And pressed the forced Update Now
                          It took a minute until it returned to the previous screen
                          As if he collects the reports or something

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

                            run sarg -x on console to check if it is still complaining about LDAP options.

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

                            Help a community developer! ;D

                            1 Reply Last reply Reply Quote 0
                            • F
                              firefox
                              last edited by

                              I think it's the same

                              SARG: Init
                              SARG: Loading configuration from /usr/pbi/sarg-i386/etc/sarg/sarg.conf
                              SARG: (info) No graphs available as sarg was not compiled with libgd. Set "graphs" to "no" in /usr/pbi/sarg-i386/etc/sarg/sarg.conf to disable this warning
                              SARG: Chaining IP resolving module "dns"
                              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: Deleting temporary directory "/tmp/sarg"
                              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) = 
                              SARG:    Email address to send reports (-e) = 
                              SARG:                      Config file (-f) = /usr/pbi/sarg-i386/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) = Yes
                              SARG:                       Output dir (-o) = /usr/local/sarg-reports/
                              SARG: Use Ip Address instead of userid (-p) = Yes
                              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) = 24
                              SARG: 
                              SARG: sarg version: 2.3.6 Arp-21-2013
                              SARG: Loading User table: ldap
                              SARG: Cannot bind to LDAP server: Can't contact LDAP server
                              
                              1 Reply Last reply Reply Quote 0
                              • marcellocM
                                marcelloc
                                last edited by

                                [quote]
                                SARG: Loading User table: ldap
                                SARG: Cannot bind to LDAP server: Can't contact LDAP server
                                [/quote]
                                
                                Still problems with  your ldap config on sarg gui...
                                

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

                                Help a community developer! ;D

                                1 Reply Last reply Reply Quote 0
                                • F
                                  firefox
                                  last edited by

                                  Is it possible to fix it
                                  Or should reinstalled

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

                                    @firefox:

                                    Is it possible to fix it

                                    What ldap settings did you configured? it's not a package issue, it's a sysadmin config issue.

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

                                    Help a community developer! ;D

                                    1 Reply Last reply Reply Quote 0
                                    • F
                                      firefox
                                      last edited by

                                      @marcelloc:

                                      @firefox:

                                      Is it possible to fix it

                                      What ldap settings did you configured? it's not a package issue, it's a sysadmin config issue.

                                      what is  ldap settings
                                      and what is sysadmin config

                                      s1.png
                                      s1.png_thumb
                                      s2.png
                                      s2.png_thumb

                                      1 Reply Last reply Reply Quote 0
                                      • F
                                        firefox
                                        last edited by

                                        Scheduling

                                        s3.png
                                        s3.png_thumb

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

                                          sysadmin means system administrator, in this case, you.

                                          check user tab if you have configured ldap settings.

                                          Also, uncheck graphs on first tab, the compilation of this feature on 2.1 is still pending.

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

                                          Help a community developer! ;D

                                          1 Reply Last reply Reply Quote 0
                                          • F
                                            firefox
                                            last edited by

                                            Same result

                                            s4.png
                                            s4.png_thumb

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