• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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
    last edited by Feb 16, 2023, 4:02 PM

    Hey all,

    After upgrading to 23.01, I noticed that the System States graph in monitoring is no longer collecting data. Filter states, source and destination address is zeroed out. Only state changes are being logged.

    login-to-view

    A post on reddit asked me to try doing a reset data which did not resolve the issue. I'm not overly concerned since I'm just a home user but it's nice to look out for abnormalities on the network from time to time.

    I'm open to suggestions on resolution.

    Cheers.

    M 1 Reply Last reply Feb 16, 2023, 4:12 PM Reply Quote 0
    • M
      MoonKnight @gisuck
      last edited by Feb 16, 2023, 4:12 PM

      @gisuck

      Same here.

      login-to-view

      --- 24.11 ---
      Intel(R) Xeon(R) CPU D-1518 @ 2.20GHz
      Kingston DDR4 2666MHz 16GB ECC
      2 x HyperX Fury SSD 120GB (ZFS-mirror)
      2 x Intel i210 (ports)
      4 x Intel i350 (ports)

      1 Reply Last reply Reply Quote 0
      • J
        jimp Rebel Alliance Developer Netgate
        last edited by Feb 16, 2023, 4:46 PM

        Looks like something changed in egrep which is breaking the script lines that parse the state data.

        I opened https://redmine.pfsense.org/issues/13966 to look into it.

        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
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Feb 16, 2023, 8:25 PM

          So we found that not only was it newly broken, but the pattern wasn't properly matching NAT states for years. Reid crafted a new pattern that we've tested internally with good results, and it's in the repo now.

          You can install the System Patches package and then create an entry for d9fa4584e3fb63d6051e9f1db7655f931cb1be19 to apply the fix.

          After applying the patch you will need to either reboot or manually restart RRD graphing (Status > Monitoring, click the Wrench, then Display Advanced, then Disable Graphing and then repeat that but click Enable Graphing). Either way the RRD data collection script will get rewritten and should contain the new pattern.

          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 1 Reply Last reply Feb 16, 2023, 8:36 PM Reply Quote 4
          • G
            gisuck @jimp
            last edited by Feb 16, 2023, 8:36 PM

            @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
            • J
              jimp Rebel Alliance Developer Netgate
              last edited by Feb 16, 2023, 8:43 PM

              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 Feb 16, 2023, 8:51 PM Reply Quote 2
              • G
                gisuck @jimp
                last edited by Feb 16, 2023, 8:51 PM

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

                1 Reply Last reply Reply Quote 1
                • T
                  tman222
                  last edited by Feb 16, 2023, 11:22 PM

                  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 Feb 17, 2023, 9:54 PM

                    @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

                    J 1 Reply Last reply Feb 18, 2023, 8:55 PM Reply Quote 1
                    • S
                      S762 @jimp
                      last edited by Feb 18, 2023, 11:40 AM

                      @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 Feb 18, 2023, 8:32 PM

                        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
                        • J
                          jimp Rebel Alliance Developer Netgate @michmoor
                          last edited by Feb 18, 2023, 8:55 PM

                          @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 Feb 18, 2023, 10:32 PM Reply Quote 2
                          • M
                            michmoor LAYER 8 Rebel Alliance @jimp
                            last edited by michmoor Feb 18, 2023, 11:50 PM Feb 18, 2023, 10:32 PM

                            @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

                            J 1 Reply Last reply Feb 19, 2023, 4:43 PM Reply Quote 0
                            • johnpozJ johnpoz referenced this topic on Feb 19, 2023, 2:13 PM
                            • johnpozJ johnpoz referenced this topic on Feb 19, 2023, 2:13 PM
                            • johnpozJ johnpoz referenced this topic on Feb 19, 2023, 2:14 PM
                            • johnpozJ johnpoz referenced this topic on Feb 19, 2023, 2:14 PM
                            • johnpozJ johnpoz referenced this topic on Feb 19, 2023, 2:14 PM
                            • johnpozJ johnpoz referenced this topic on Feb 19, 2023, 2:14 PM
                            • J
                              jimp Rebel Alliance Developer Netgate @michmoor
                              last edited by Feb 19, 2023, 4:43 PM

                              @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 Feb 19, 2023, 5:37 PM Reply Quote 0
                              • johnpozJ
                                johnpoz LAYER 8 Global Moderator @jimp
                                last edited by johnpoz Feb 19, 2023, 6:15 PM Feb 19, 2023, 5:37 PM

                                @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 Feb 19, 2023, 5:41 PM Reply Quote 2
                                • M
                                  michmoor LAYER 8 Rebel Alliance @johnpoz
                                  last edited by Feb 19, 2023, 5:41 PM

                                  @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 Feb 19, 2023, 5:50 PM Reply Quote 0
                                  • johnpozJ
                                    johnpoz LAYER 8 Global Moderator @michmoor
                                    last edited by Feb 19, 2023, 5:50 PM

                                    @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
                                    1 out of 17
                                    • First post
                                      1/17
                                      Last post
                                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.