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

Traffic Totals: Broken in 2.4.4-p3 [SOLVED WITH PATCH]

Traffic Monitoring
8
24
3.8k
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.
  • N
    Nyarlathotep
    last edited by Nyarlathotep May 24, 2019, 9:11 PM May 21, 2019, 9:38 PM

    It was working fine in 2.4.4.-p2; after upgrading to p3, it would no longer display graphs. After trying multiple fixes, such as removing the package, deleting the contents of /var/db/vnstat, reloading the package, and resetting graphing data, I attempted a "last resort" option of installing 2.4.4-p3 from scratch and restoring a backup from p2... same symptoms.

    For now, I removed the Traffic Totals package; hopefully there will be a fix for this issue.

    1 Reply Last reply Reply Quote 0
    • N
      NogBadTheBad
      last edited by NogBadTheBad May 22, 2019, 6:47 AM May 22, 2019, 6:46 AM

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • D
        Derelict LAYER 8 Netgate
        last edited by Derelict May 22, 2019, 6:57 PM May 22, 2019, 6:56 PM

        Looks fine here.

        login-to-view

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • K
          KOM
          last edited by May 22, 2019, 7:04 PM

          Does it behave the same way on different browsers?

          1 Reply Last reply Reply Quote 0
          • N
            NogBadTheBad
            last edited by May 22, 2019, 7:30 PM

            [2.4.4-RELEASE][admin@pfsense]/root/scripts: /usr/local/bin/vnstat -i pppoe0 -h
             WAN (pppoe0)                                                             20:25 
              ^                                      r                                      
              |                                      r                                      
              |                                      r                                      
              |                                      r                                      
              |                                      r                             r        
              |                                      r                             r        
              |                                      r                             r        
              |                                      r                             r        
              |                                      r                             r        
              |                                      r  r     r           r        r        
             -+---------------------------------------------------------------------------> 
              |  21 22 23 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20    
                                                                                            
             h  rx (MiB)   tx (MiB)      h  rx (MiB)   tx (MiB)      h  rx (MiB)   tx (MiB) 
            21       0.00       0.00    05       0.00       0.00    13      32.19      10.98
            22       0.00       0.00    06       0.00       0.00    14      65.78      15.07
            23       0.00       0.00    07       0.00       0.00    15      30.59       7.33
            00       0.00       0.00    08       0.00       0.00    16      89.40       9.08
            01       0.00       0.00    09     661.91      40.87    17       7.20       2.81
            02       0.00       0.00    10      90.79      12.23    18       3.09       1.83
            03       0.00       0.00    11      46.40      14.45    19     434.38      13.74
            04       0.00       0.00    12      79.43       7.93    20       7.28       2.88
            [2.4.4-RELEASE][admin@pfsense]/root/scripts:
            
            1 Reply Last reply Reply Quote 0
            • N
              NogBadTheBad
              last edited by NogBadTheBad May 22, 2019, 7:32 PM May 22, 2019, 7:31 PM

              Just sits at Loading graph with safari & chrome for me after nothing showing then a reset graphing data.

              Nothing showed at all straight after the update.

              login-to-view

              1 Reply Last reply Reply Quote 0
              • K
                KOM
                last edited by May 22, 2019, 7:34 PM

                Does it behave the same way on different browsers?

                1 Reply Last reply Reply Quote 0
                • N
                  NogBadTheBad
                  last edited by NogBadTheBad May 22, 2019, 7:38 PM May 22, 2019, 7:35 PM

                  Yup safari & chrome, but not Firefox.

                  Just also noticed you don't see the Hourly Daily Monthly Top 10 Days either.

                  login-to-view

                  1 Reply Last reply Reply Quote 0
                  • N
                    NogBadTheBad
                    last edited by NogBadTheBad May 22, 2019, 7:57 PM May 22, 2019, 7:42 PM

                    Looks like it may be associated with the user manager bug.

                    https://redmine.pfsense.org/issues/9541

                    Firefox with my freeradius user id I get the Loading graph.

                    Safari with the local admin user shows the graph.

                    1 Reply Last reply Reply Quote 2
                    • N
                      Nyarlathotep
                      last edited by Nyarlathotep May 22, 2019, 11:13 PM May 22, 2019, 9:34 PM

                      @KOM

                      It yields the same result regardless of the browser used.

                      @NogBadTheBad

                      Interesting... when logged as a normal user with admin privileges, the screen just sits at "Loading Graph..." (as noted above). When logged in using the actual admin account, the graph works. So yes, it must have something to do with the user manager.

                      login-to-view

                      1 Reply Last reply Reply Quote 0
                      • C
                        craibo
                        last edited by May 23, 2019, 11:02 AM

                        I'm experiencing the same issue when using a non-admin user in all browsers.

                        The data is all there in the response body but the graph and data table are not rendering.

                        console failure:

                        Uncaught TypeError: Cannot read property 'substring' of undefined
                            at Object.success (status_traffic_totals.php:475)
                            at i (jquery-1.12.0.min.js?v=1538660271:2)
                            at Object.fireWith [as resolveWith] (jquery-1.12.0.min.js?v=1538660271:2)
                            at y (jquery-1.12.0.min.js?v=1538660271:4)
                            at XMLHttpRequest.c (jquery-1.12.0.min.js?v=1538660271:4)
                        

                        Additionally as previously noted the Hourly Daily Monthly Top 10 Days options are also missing on all users.

                        1 Reply Last reply Reply Quote 0
                        • J
                          jlw52761
                          last edited by May 24, 2019, 5:52 PM

                          Interesting, I don't even see a Traffic Totals menu entry under Status, or anywhere for that matter. Running 2.4.4-p3 (upgraded from 2.4.4-p2)

                          K 1 Reply Last reply May 24, 2019, 6:00 PM Reply Quote 0
                          • K
                            KOM @jlw52761
                            last edited by May 24, 2019, 6:00 PM

                            @jlw52761 It's a package that you have to add, Status_Traffic_Totals.

                            J 1 Reply Last reply May 24, 2019, 6:00 PM Reply Quote 1
                            • J
                              jlw52761 @KOM
                              last edited by May 24, 2019, 6:00 PM

                              @KOM Got it, thanks!

                              1 Reply Last reply Reply Quote 0
                              • jimpJ
                                jimp Rebel Alliance Developer Netgate
                                last edited by May 24, 2019, 6:50 PM

                                Which specific privileges do the user have which can't load the graph?

                                The WebCfg - Status: Traffic Totals (page-status-monitoring) privilege appears to be correct.

                                What, if anything, shows in the main system log when a non-admin user attempts to access the page?

                                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                Need help fast? Netgate Global Support!

                                Do not Chat/PM for help!

                                N 1 Reply Last reply May 24, 2019, 7:11 PM Reply Quote 0
                                • N
                                  NogBadTheBad @jimp
                                  last edited by NogBadTheBad May 24, 2019, 7:22 PM May 24, 2019, 7:11 PM

                                  @jimp said in Traffic Totals: Broken in 2.4.4-p3 [Cause Identified]:

                                  Which specific privileges do the user have which can't load the graph?

                                  The WebCfg - Status: Traffic Totals (page-status-monitoring) privilege appears to be correct.

                                  What, if anything, shows in the main system log when a non-admin user attempts to access the page?

                                  I only have the single user.

                                  From the FreeRadius users:-

                                  "andy" Cleartext-Password := "password"
                                  
                                  	Class := "admins",
                                  	Service-Type := "Administrative-User"
                                  

                                  login-to-view

                                  login-to-view

                                  login-to-view

                                  1 Reply Last reply Reply Quote 0
                                  • jimpJ
                                    jimp Rebel Alliance Developer Netgate
                                    last edited by May 24, 2019, 7:28 PM

                                    Actually, I see what the problem is. The way the package uses display_top_tabs() to generate tabs that don't link to actual pages, just JS anchors, doesn't like the new stronger page validation used by the privilege system. And since they aren't actual files that exist, there isn't a way to allow access to them, so the privilege system filters out the tabs.

                                    I don't see a quick way to fix this in the package privileges, but maybe the package maintainer can figure out a better way to generate the tab anchor links.

                                    I'll see if I can come up with a safe way to test for this in the privilege matching system.

                                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                    Need help fast? Netgate Global Support!

                                    Do not Chat/PM for help!

                                    1 Reply Last reply Reply Quote 1
                                    • N
                                      NogBadTheBad
                                      last edited by May 24, 2019, 7:29 PM

                                      Thanks Jim ☺

                                      1 Reply Last reply Reply Quote 0
                                      • jimpJ
                                        jimp Rebel Alliance Developer Netgate
                                        last edited by May 24, 2019, 7:30 PM

                                        https://redmine.pfsense.org/issues/9550

                                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                        Need help fast? Netgate Global Support!

                                        Do not Chat/PM for help!

                                        1 Reply Last reply Reply Quote 0
                                        • jimpJ
                                          jimp Rebel Alliance Developer Netgate
                                          last edited by May 24, 2019, 8:01 PM

                                          I think I've got this fixed but it'll take a patch in the base system, not the package.

                                          You can install the System Patches package and then create an entry for bdbd8534eef5b93370065340de225a1cd5e5faa8 to apply the fix and try it out. I did test against several different attack methods to ensure it didn't lower the security, and it allows the JS anchor links as expected.

                                          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                          Need help fast? Netgate Global Support!

                                          Do not Chat/PM for help!

                                          F 1 Reply Last reply May 27, 2019, 2:42 PM Reply Quote 2
                                          1 out of 24
                                          • First post
                                            1/24
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.