NetXMS Support Forum

English Support => General Support => Topic started by: blazarov on February 04, 2017, 04:19:40 PM

Title: Access to graphs outside of the NetXMS Console
Post by: blazarov on February 04, 2017, 04:19:40 PM
Hi,
I was thinking that it would be very good if there is way to access particular graphs outside of the NetXMS console.
Is there such thing available right now? For example if i need to show some graph on a standard web site?

I was thinking of two possible soltions:
1) Provide access to a "dynamic graph web API" which is just a web service that you can call with GET/POST attributes for the graph (size, DCIs, time period, etc...) and it returns a rendered PNG on the fly. Or maybe you create the graph you want as a predefined graph and just "call" it on the web API to get the rendered PNG for use.
2) Set a scheduled PNG file creation in a specified location.

Any ideas on how to realize that?
Title: Re: Access to graphs outside of the NetXMS Console
Post by: Victor Kirhenshtein on February 06, 2017, 09:57:17 AM
Hi,

I think option 1 is more feasible. There is Java API for reading DCI data, so all is needed is to find some Java library that can generate graphs in PNG format and write a simple web service around it. Do you know any good Java library for that? We could possibly use BIRT and built this functionality into web UI, but it will be quite heavy solution.

Best regards,
Victor
Title: Re: Access to graphs outside of the NetXMS Console
Post by: blazarov on February 21, 2017, 05:56:54 PM
Hi Victor,
Thanks for your reply. I totally agree with you. Unfortunately i am not into Java and coding in general so i can not advise on that.

I just hope that options will make place in some of the near future releases :)
Title: Re: Access to graphs outside of the NetXMS Console
Post by: Victor Kirhenshtein on April 03, 2017, 11:39:57 AM
Hi,

starting with 2.1-M3 we have added integration with Grafana visualization tool. It is not PNG as you wanted, but still can be used to provide web UI for seeing graphs without actually giving access to NetXMS.

Best regards,
Victor