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

    System states graph no longer working

    webGUI
    7
    17
    1.9k
    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.
    • G
      gisuck @jimp
      last edited by

      @jimp Seems to be working. Just applied the patch now and can see numbers being populated in the 1 hour time period.

      Thanks!

      1 Reply Last reply Reply Quote 1
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        You'll probably want this one, too. The graph wasn't even displaying the NAT data, but now that it's valid again, it should be turned back on:

        diff --git a/blah/usr/local/www/rrd_fetch_json.php b/blah/usr/local/www/rrd_fetch_json.php
        index df0401f96e89..4d7574819ac9 100644
        --- a/blah/usr/local/www/rrd_fetch_json.php
        +++ b/blah/usr/local/www/rrd_fetch_json.php
        @@ -226,7 +226,8 @@ foreach ($side as $settings) {
                                        $ds = "state changes";
                                        break;
                                case "pfnat":
        -                               $ignore = true;
        +                               $unit_acronym = "";
        +                               $ds = "NAT states";
                                        break;
                                case "inpass":
                                        $ninetyfifth = true;
        

        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!

        G M S 3 Replies Last reply Reply Quote 2
        • G
          gisuck @jimp
          last edited by

          @jimp This is also working as well. Thanks for all of this! :)

          1 Reply Last reply Reply Quote 1
          • T
            tman222
            last edited by

            Applied both patches and can also confirm that states (and NAT states) are now showing (again) on the RRD graphs. Thanks @jimp for the quick fix.

            1 Reply Last reply Reply Quote 0
            • M
              michmoor LAYER 8 Rebel Alliance @jimp
              last edited by

              @jimp I may not be looking at this correctly but what is the commit id for the NAT data?

              Firewall: NetGate,Palo Alto-VM,Juniper SRX
              Routing: Juniper, Arista, Cisco
              Switching: Juniper, Arista, Cisco
              Wireless: Unifi, Aruba IAP
              JNCIP,CCNP Enterprise

              jimpJ 1 Reply Last reply Reply Quote 1
              • S
                S762 @jimp
                last edited by

                @jimp said in System states graph no longer working:

                You'll probably want this one, too. The graph wasn't even displaying the NAT data, but now that it's valid again, it should be turned back on:

                sorry but how do I/we run this one? I added the Patch package and seemed to have done that correctly but I'm missing something there. is that run from the command prompt?

                1 Reply Last reply Reply Quote 1
                • T
                  tman222
                  last edited by

                  Hi all -

                  See this Redmine issue for the NAT data patch:

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

                  This fix was actually pushed to the dev snapshots. However, you can still apply it manually to 23.01.

                  Just go System > Patches > Add New Patch. Give the patch a description in the "Description" field, and then in the "Patch Contents" field copy the entire diff --git... code snippet posted above (this same code snippet is also listed in the Redmine issue linked to above). Click "Save" and then you can "Apply" the patch. Once the patch is applied, you'll have to disable and then re-enable graphing again to see the changes (as needed to be done with the other patch).

                  Hope this helps.

                  1 Reply Last reply Reply Quote 2
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate @michmoor
                    last edited by

                    @michmoor said in System states graph no longer working:

                    @jimp I may not be looking at this correctly but what is the commit id for the NAT data?

                    It's in the ports repo:

                    https://github.com/pfsense/FreeBSD-ports/commit/6b39f88b22ace4d2b002ab3e7923db3d1d744bf3

                    But the Makefile change isn't relevant for patching a live system, so I posted a simplified version of the patch here in the thread and on Redmine.

                    @s762 said in System states graph no longer working:

                    @jimp said in System states graph no longer working:

                    You'll probably want this one, too. The graph wasn't even displaying the NAT data, but now that it's valid again, it should be turned back on:

                    sorry but how do I/we run this one? I added the Patch package and seemed to have done that correctly but I'm missing something there. is that run from the command prompt?

                    Create an entry in the system patches package, paste in the patch, then apply it.

                    https://docs.netgate.com/pfsense/en/latest/development/system-patches.html

                    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!

                    M 1 Reply Last reply Reply Quote 2
                    • M
                      michmoor LAYER 8 Rebel Alliance @jimp
                      last edited by michmoor

                      @jimp gotcha. Thanks

                      edit: Applied the patch and works without issues.

                      1. What is NAT state tracking exactly? How many translations are taking place?
                      2. The documentation needs updating to account for NAT along with a description.
                        https://docs.netgate.com/pfsense/en/latest/monitoring/graphs/list.html#system-graphs

                      Firewall: NetGate,Palo Alto-VM,Juniper SRX
                      Routing: Juniper, Arista, Cisco
                      Switching: Juniper, Arista, Cisco
                      Wireless: Unifi, Aruba IAP
                      JNCIP,CCNP Enterprise

                      jimpJ 1 Reply Last reply Reply Quote 0
                      • johnpozJ johnpoz referenced this topic on
                      • johnpozJ johnpoz referenced this topic on
                      • johnpozJ johnpoz referenced this topic on
                      • johnpozJ johnpoz referenced this topic on
                      • johnpozJ johnpoz referenced this topic on
                      • johnpozJ johnpoz referenced this topic on
                      • jimpJ
                        jimp Rebel Alliance Developer Netgate @michmoor
                        last edited by

                        @michmoor said in System states graph no longer working:

                        @jimp gotcha. Thanks

                        edit: Applied the patch and works without issues.

                        1. What is NAT state tracking exactly? How many translations are taking place?

                        How many states in the state table involve a NAT translation

                        1. The documentation needs updating to account for NAT along with a description.
                          https://docs.netgate.com/pfsense/en/latest/monitoring/graphs/list.html#system-graphs

                        Can you open an issue under https://redmine.pfsense.org/projects/pfsense-docs about that?

                        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!

                        johnpozJ 1 Reply Last reply Reply Quote 0
                        • johnpozJ
                          johnpoz LAYER 8 Global Moderator @jimp
                          last edited by johnpoz

                          @jimp did it for them

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

                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                          If you get confused: Listen to the Music Play
                          Please don't Chat/PM me for help, unless mod related
                          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                          M 1 Reply Last reply Reply Quote 2
                          • M
                            michmoor LAYER 8 Rebel Alliance @johnpoz
                            last edited by

                            @johnpoz Thank you

                            Firewall: NetGate,Palo Alto-VM,Juniper SRX
                            Routing: Juniper, Arista, Cisco
                            Switching: Juniper, Arista, Cisco
                            Wireless: Unifi, Aruba IAP
                            JNCIP,CCNP Enterprise

                            johnpozJ 1 Reply Last reply Reply Quote 0
                            • johnpozJ
                              johnpoz LAYER 8 Global Moderator @michmoor
                              last edited by

                              @michmoor NP - wasn't sure how familiar you were with creating redmines, if you have an account even.. figured just do it..

                              An intelligent man is sometimes forced to be drunk to spend time with his fools
                              If you get confused: Listen to the Music Play
                              Please don't Chat/PM me for help, unless mod related
                              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

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