OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: samnet on August 04, 2024, 01:33:31 PM

Title: Any Idea on getting Graphs generated via API or other means to be re shown?
Post by: samnet on August 04, 2024, 01:33:31 PM
Hi,
We are building an APP that will look into the graphs generated by opnsense and show it in our APP UI.
we wanted to know a proper way to access those graph and fetch them directly from the opnsense and just get them displayed.
When we do API we get RAW data. what we want os the graph to be rendered on opnsense then just re show the png file generated in the APP
is there a good way to do this?
Title: Re: Any Idea on getting Graphs generated via API or other means to be re shown?
Post by: cookiemonster on August 04, 2024, 02:04:48 PM
which graphs ?
Title: Re: Any Idea on getting Graphs generated via API or other means to be re shown?
Post by: samnet on August 04, 2024, 03:43:03 PM
Quote from: cookiemonster on August 04, 2024, 02:04:48 PM
which graphs ?
Graphs seen under reporting menu and firewall graphs as well
Title: Re: Any Idea on getting Graphs generated via API or other means to be re shown?
Post by: cookiemonster on August 04, 2024, 11:16:54 PM
maybe a look at https://docs.opnsense.org/manual/how-tos/netflow_exporter.html and the code in github will assist
Title: Re: Any Idea on getting Graphs generated via API or other means to be re shown?
Post by: samnet on August 06, 2024, 12:05:40 AM
Quote from: cookiemonster on August 04, 2024, 11:16:54 PM
maybe a look at https://docs.opnsense.org/manual/how-tos/netflow_exporter.html and the code in github will assist
Thanks can you share the github code pls?
Title: Re: Any Idea on getting Graphs generated via API or other means to be re shown?
Post by: cookiemonster on August 06, 2024, 11:01:11 AM
https://github.com/opnsense
Title: Re: Any Idea on getting Graphs generated via API or other means to be re shown?
Post by: samnet on August 07, 2024, 08:07:17 AM
Quote from: cookiemonster on August 06, 2024, 11:01:11 AM
https://github.com/opnsense
Thanks but our problem is actaully wanting to get the graphing images processed on opnsense side rather than getting the app to re draw graph from a raw data fetched from opnsense
Im sure there is a way for this
all those graphs show or generated under reporting I think there must be a way to get them via api or using a graphing engine.
Title: Re: Any Idea on getting Graphs generated via API or other means to be re shown?
Post by: cookiemonster on August 07, 2024, 02:58:26 PM
Seems like you want to stream graphs. I don't know then. Sorry.
Title: Re: Any Idea on getting Graphs generated via API or other means to be re shown?
Post by: samnet on August 30, 2024, 04:19:16 PM
Quote from: cookiemonster on August 07, 2024, 02:58:26 PM
Seems like you want to stream graphs. I don't know then. Sorry.
Im not sure if streaming graphs is the correct term, but anyway Im sure there must be a way to get those graphs somehow