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:
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;
-
@jimp This is also working as well. Thanks for all of this! :)
-
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.
-
@jimp I may not be looking at this correctly but what is the commit id for the NAT data?
-
@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?
-
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.
-
@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
-
@jimp gotcha. Thanks
edit: Applied the patch and works without issues.
- What is NAT state tracking exactly? How many translations are taking place?
- 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
-
-
-
-
-
-
-
@michmoor said in System states graph no longer working:
@jimp gotcha. Thanks
edit: Applied the patch and works without issues.
- What is NAT state tracking exactly? How many translations are taking place?
How many states in the state table involve a NAT translation
- 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?
-
@jimp did it for them
-
@johnpoz Thank you
-
@michmoor NP - wasn't sure how familiar you were with creating redmines, if you have an account even.. figured just do it..