Page 1 of 1
Please provde API Endpoint to get list of graphs or to get the specific graph using Nagios ID
Posted: Tue Jan 09, 2024 9:42 pm
by argentra
Dear Team,
We have a project to integrate nagios graphs with external application by calling Nagios API. Do we have any API endpoint to list the Nagios Graphs or to get the nagios graphs using Nagios ID. Kindly help
Thanks
Re: Please provde API Endpoint to get list of graphs or to get the specific graph using Nagios ID
Posted: Wed Jan 10, 2024 12:06 pm
by lgute
Hi
@argentra, thanks for reaching out.
Please check out this
post on this same topic.
Re: Please provde API Endpoint to get list of graphs or to get the specific graph using Nagios ID
Posted: Wed Jan 10, 2024 9:05 pm
by argentra
Dear Sebastian
Thanks for your answer.
Is it possible to get the data with time range using API Endponint. For example, Particular Host details with time line
Assume , we have access to /usr/local/nagios/share/perfdata, Is there any guide we can create a grapgh using those raw data
Thanks
Kumar
Re: Please provde API Endpoint to get list of graphs or to get the specific graph using Nagios ID
Posted: Thu Jan 11, 2024 1:23 pm
by swolf
Hi Kumar,
It looks like I was mistaken earlier - you can get the same data using the XI 5 API. You can access the documentation by going to Help -> Objects Reference -> Data Exporting in the Nagios XI web interface. The performance data graphs are available under "rrdexport", and you'll also have access to data for capacity planning, the Host/Service Availability Report, the SLA Report, and the BPI Group summary.
As far as creating your own graphs, we use
Highcharts for most of the visualizations in our application, including the Performance Data graph. However, the data from the API is generic and should be usable with whatever charting library or solution you're able to use.
Please let me know if you have any further questions or concerns.
-Sebastian