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

    Traffic Graphs Broken in 2.4.0.b.20170512.1940?

    Scheduled Pinned Locked Moved 2.4 Development Snapshots
    41 Posts 13 Posters 9.4k 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.
    • S
      shimano
      last edited by

      No, i can only click on nv.d3.js:9656  right next to invalid or unexpected token and is shows this.

      a.JPG
      a.JPG_thumb

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

        Any ideas what i should do so i can have a working traffic graph ?

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

          What does line 9656 of that file look like?

          And a bit around it.

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

              function mouseover_line(evt) {
                            var yaxis = data[evt.seriesIndex].yAxis === 2 ? yAxis2 : yAxis1;
                            evt.value = evt.point.x;
                            evt.series = {
                                value: evt.point.y,
                                color: evt.point.color,
                                key: evt.series.key
                            };
                            tooltip
                                .duration(0)
                                .headerFormatter(function(d, i) {
                                    return xAxis.tickFormat()(d, i);
                                })
                                .valueFormatter(function(d, i) {
                                    return yaxis.tickFormat()(d, i);
                                })
                                .data(evt)
                                .hidden(false);
                        }
            
                        function mouseover_scatter(evt) {
                            var yaxis = data[evt.seriesIndex].yAxis === 2 ? yAxis2 : yAxis1;
                            evt.value = evt.point.x;
                            evt.series = {
                                value: evt.point.y,
                                color: evt.point.color,
                                key: evt.series.key
                            };
                            tooltip
                                .duration(100)
                                .headerFormatter(function(d, i) {
                                    return xAxis.tickFormat()(d, i);
                                })
                                .valueFormatter(function(d, i) {
                                    return yaxis.tickFormat()(d, i);
                                })
                                .data(evt)
                                .hidden(false);
                        }
            
                        function mouseover_stack(evt) {
                            var yaxis = data[evt.s[/code]
            
            ![a.JPG](/public/_imported_attachments_/1/a.JPG)
            ![a.JPG_thumb](/public/_imported_attachments_/1/a.JPG_thumb)
            
            1 Reply Last reply Reply Quote 0
            • P
              PiBa
              last edited by

              Not sure what happened there.. that line should be longer.:
              https://github.com/pfsense/pfsense/blob/ad1e294ce5a735b680aa9ef93f25906077c8812d/src/usr/local/www/vendor/nvd3/nv.d3.js#L9656 and should be still quite a few lines after it as well..

              Can you check with diagnostics\editfile or perhaps your favorite SCP client what the file "/usr/local/www/vendor/nvd3/nv.d3.js" on pfSense itself looks like? Is it complete?

              If the file is incomplete you could try and run:  pkg install -f pfSense-base    on the pfSense console or ssh connection to re-install it..

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

                I don't know if its complete or not, but this is how it looks like, can you tell me if it is ok ?

                I added to a text file as i cannot paste it here to long.

                file.txt

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

                  Looks like its only 9656 lines, while there should be 14354 like in the link so definitely not ok.. https://github.com/pfsense/pfsense/blob/ad1e294ce5a735b680aa9ef93f25906077c8812d/src/usr/local/www/vendor/nvd3/nv.d3.js#L14354

                  Can you run the pkg command mentioned, and check again.?

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

                    Thank you ever so much ! now it works perfectly !!

                    Thanks so so much for your effort to help i so appreciate it you earn a lot of respect, if i can ever repay you for your help just le me know:

                    
                    [2.4.2-RELEASE][root@pfSense.shimano.home]/root: pkg install -f pfSense-base
                    Updating pfSense-core repository catalogue...
                    pfSense-core repository is up to date.
                    Updating pfSense repository catalogue...
                    pfSense repository is up to date.
                    All repositories are up to date.
                    Checking integrity... done (0 conflicting)
                    The following 1 package(s) will be affected (of 0 checked):
                    
                    Installed packages to be REINSTALLED:
                            pfSense-base-2.4.2_1 [pfSense-core]
                    
                    Number of packages to be reinstalled: 1
                    
                    Proceed with this action? [y/N]: y
                    [1/1] Reinstalling pfSense-base-2.4.2_1...
                    [1/1] Extracting pfSense-base-2.4.2_1: 100%
                    ===> Keeping a copy of current version mtree
                    ===> Removing schg flag from base files
                    ===> Extracting new base tarball
                    ===> Removing static obsoleted files
                    [2.4.2-RELEASE][root@pfSense.shimano.home]/root:
                    
                    

                    a.JPG
                    a.JPG_thumb

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

                      Ok great :).
                      Next issue, please do fill in a different 'monitor ip' on your wan gateway, one that that responds to ping, so the gateway wont show as 'down' with 100% loss, and the quality monitoring rrd's will contain some better data ;). But well that should probably go into a different topic 8).

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

                        Ok i will open another topic for that i don't know how to do it and would be really nice to work, but i am not sure if it will work since i have a pppoe with dynamic ip gateway and ip always changes

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