Navigation

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

    Bandwidthd problems … !

    pfSense Packages
    5
    15
    9636
    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.
    • C
      crusty2000 last edited by

      Hello,
      I have problems with the banwithd package.
      It seems that it doesn't work properly …  ::)
      look at the screenshot, the page is not finished and there ar no graphs!?
      what is the problem?  ???

      best regards,
      Crusty

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

        Yep, just another of the handful of bugs this program has.

        I am about to start searching for a suitable replacement for this package.

        1 Reply Last reply Reply Quote 0
        • C
          crusty2000 last edited by

          the features of this package would be great but it's not working thats the problem, no good programmer her who could debug that tool?

          best regards,
          Crusty

          1 Reply Last reply Reply Quote 0
          • H
            hoba last edited by

            All devs already have enough to do with pfSense developement. It also requires some time to get into the code of someone else. Switching to something that simply works is probably the better attempt.

            1 Reply Last reply Reply Quote 0
            • M
              Mercredi last edited by

              hey guys who wants extra functionality from bandwidthd package, maybe its better to pledge another bounty for your tasks? sorry.

              1 Reply Last reply Reply Quote 0
              • H
                hoba last edited by

                The point is not other functionality, it's simply buggy (not the pfsense package but the bandwidthd itself) and doesn't run on all systems or with all setups.

                1 Reply Last reply Reply Quote 0
                • C
                  crusty2000 last edited by

                  @hoba:

                  All devs already have enough to do with pfSense developement. It also requires some time to get into the code of someone else. Switching to something that simply works is probably the better attempt.

                  If you know a tool with the same functionality please tell me …

                  1 Reply Last reply Reply Quote 0
                  • M
                    MJK last edited by

                    As I already documented at length (to put it mildly  ;) ) in the main Bounty/BandWidthD thread, I failed to get BandWidthD to produce the HTML files (ie, the graphs), even though it was collecting and analysing the traffic.

                    I looked through the source code, but could not spot anything obvious.

                    If Scott, or anyone, could point me to a detailed procedure on how to compile it (preferably under pfSense, and, obviously, using the correct Source), I'll gladly dig a bit deeper… and, maybe get familiar enough with it to check on other issues also.

                    Alternative, if a better replacement is on the Horizon....

                    - Mike

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

                      builder6# cd /usr/ports/
                      builder6# make search name=bandwidthd
                      Port:  bandwidthd-2.0.1
                      Path:  /usr/ports/net-mgmt/bandwidthd
                      Info:  Tracks bandwidth usage by IP address
                      Maint:  clement@FreeBSD.org
                      B-deps: freetype2-2.2.1_1 gd-2.0.34,1 gettext-0.14.5_2 gmake-3.81_1 jpeg-6b_4 libiconv-1.9.2_2 pkg-config-0.21 png-1.2.14
                      R-deps: freetype2-2.2.1_1 gd-2.0.34,1 jpeg-6b_4 libiconv-1.9.2_2 pkg-config-0.21 png-1.2.14
                      WWW:    http://bandwidthd.sourceforge.net/

                      To build simply do:

                      cd /usr/ports/net-mgmt/bandwidthd && make install

                      1 Reply Last reply Reply Quote 0
                      • M
                        MJK last edited by

                        Many thanks, Scott.

                        If I make any progress, I'll post back here immediately.

                        (I'm a total newbie on pfSense, and also quite raw on Linux, so if I hit a wall anywhere, I'll also post back!).

                        - Mike

                        1 Reply Last reply Reply Quote 0
                        • H
                          hoba last edited by

                          it's not linux  ::)

                          1 Reply Last reply Reply Quote 0
                          • M
                            MJK last edited by

                            Good catch  ;)

                            My apologies.
                              - Mike

                            1 Reply Last reply Reply Quote 0
                            • M
                              MJK last edited by

                              Scott,

                              builder6# cd /usr/ports/
                              builder6# make search name=bandwidthd
                              Port:  bandwidthd-2.0.1
                              Path:  /usr/ports/net-mgmt/bandwidthd
                              Info:  Tracks bandwidth usage by IP address
                              Maint:  clement@FreeBSD.org
                              B-deps: freetype2-2.2.1_1 gd-2.0.34,1 gettext-0.14.5_2 gmake-3.81_1 jpeg-6b_4 libiconv-1.9.2_2 pkg-config-0.21 png-1.2.14
                              R-deps: freetype2-2.2.1_1 gd-2.0.34,1 jpeg-6b_4 libiconv-1.9.2_2 pkg-config-0.21 png-1.2.14
                              WWW:    http://bandwidthd.sourceforge.net/

                              To build simply do:

                              cd /usr/ports/net-mgmt/bandwidthd && make install

                              I'm about to tackle this exercise… (I don't give up easily!). As a newbie on this stuff, I need a little more info, and I apologise for hassling folks here...

                              The standard installation does not have a PORTS folder under USR... and MAKE does not seem to run anyway - but I've not checked properly...

                              So, is there a note somewhere which covers basics like where the Sources should go, how to compile, what other LIBs, etc, should be installed/compiled, how to activate the revised binary, etc - starting from a standard pfSense install?

                              I searched around the forums here, and other pfSense sites, and the BandWidthD sites, without finding the required HOWTO!

                              Thank you,
                                - Mike

                              PS: I've just noticed that there's a DEVELOPER's build of pfSense!! Dang - therein probably lies all the explanations and solutions! In that case, I assume I should install the developer's build on a separate HD, (in the system where Bandwidthd is not running properly), unless there's some easy "fiddle" to a standard release of pfSense to enable just the compiling of BandWidthD...

                              - Mike

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

                                @MJK:

                                PS: I've just noticed that there's a DEVELOPER's build of pfSense!! Dang - therein probably lies all the explanations and solutions! In that case, I assume I should install the developer's build on a separate HD, (in the system where Bandwidthd is not running properly), unless there's some easy "fiddle" to a standard release of pfSense to enable just the compiling of BandWidthD…

                                Yep, thats the ticket.

                                1 Reply Last reply Reply Quote 0
                                • M
                                  MJK last edited by

                                  …nearly there...

                                  [Downloading and Installing the Developers ISO went fine. I'd no idea that, on initial boots, downloading all the Source, etc, takes very many hours, and MAKE INDEX takes an hour or 2 also!! I made one possibly nasty error with GREP, as noted in another thread]

                                  Anyway, on the MAKE INSTALL, it downloads the sources, and compiles, and flashes up a massive amount of progress messages, but ends with: "Error Code 1". Whatever that means… Dang. The associated messages suggest running
                                    - make deinstall && make reinstall, or
                                    - setting FORCE_PKG_REGISTER in the Env, or
                                    - setting this in the make install command-line.

                                  Any advice welcome. Perhaps just "make install FORCE_PKG_REGISTER", but I don't want to make things worse!

                                  Separate interesting point:
                                    - BandWidthD DID create the INDEX files when I ran it for the first time. Looked only beautiful!
                                    - BUT... next time around, which was only a few minutes later (default config parms, generally), the INDEX.HTML was set to a size of 0, and the other 3 INDEX files were still OK (not refreshed yet).
                                    - Then, 1 hour later, the INDEX2.HTML file was set to 0. The other 2 were still OK.
                                    - presumably, when its time to refresh the others, they'll be duly clobbered.
                                    - I believe I did not do anything very major with the entire system, apart from installing Midnight-Commander.

                                  I dearly hope this info rings a bell with someone... I doubt if tweaking the code will readily identify why the code sometimes creates the files, and sometimes does not...

                                  I could try removing BandWidthD, clearing out the files, and re-installing, etc...

                                  Thanks again...
                                    - Mike

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post