Hello,
I represent a company that is interested in Nagios XI, but we have some questions about graph explorer before we make our decision. I tried asking your sales representatives ([email protected]), but they said it's best if I ask this question here.
So, here is my question:
Getting or generating a direct link to an rrdtool graph is pretty easy (using perfdata/graphApi.php) - I just need to change a few variables in the link, like hostname and datasource. I was wondering if there is a way to get or generate the same sort of direct link to a graph explorer graph? I would like to have a link on an external page point directly to a graph explorer graph for a specific service, but I can't find a way to generate the link.
Thanks for your help.
Kind regards,
Mario
Nagios XI graph explorer
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios XI graph explorer
Depending on what precisely you are looking for, you could quite possibly use the "get permalink" icon in the top right corner of the web UI, that will grab a link directly to what you are viewing. In what capacity were you planning on using these links?
Re: Nagios XI graph explorer
That was the first thing I tried, but it gives me a link to graph explorer page in Nagios XI, not a link to a specific graph I am currently viewing in graph explorer. There are multiple tabs inside graph explorer (Top Alerts Last 24hrs, Host Health, Service Health...), and I would like a link to a graph for a specific service on the Scalable Performance Graph tab. If I click the permalink icon, I get a link to the graph explorer, and it opens the Top Alerts Last 24hrs tab (first tab), no matter which tab I was on when I took the permalink.
I need the link because I would like to generate links to specific graphs from a script, so I could have automaticaly generated pages (outside of Nagios XI web UI) which would link directly to a graph in graph explorer for a specific host or service.
It's easy to do something similar with graphs from Host Graphs (rrdtool graphs) - the link to the graph image looks like this http://nagiosxi.host/nagiosxi/includes/ ... 1397685560
Is there a way to get a similar link to a graph from graph explorer?
I need the link because I would like to generate links to specific graphs from a script, so I could have automaticaly generated pages (outside of Nagios XI web UI) which would link directly to a graph in graph explorer for a specific host or service.
It's easy to do something similar with graphs from Host Graphs (rrdtool graphs) - the link to the graph image looks like this http://nagiosxi.host/nagiosxi/includes/ ... 1397685560
Is there a way to get a similar link to a graph from graph explorer?
Re: Nagios XI graph explorer
I can talk to a developer about this, but my guess is most likely not. The performance graphs are created by calling a specific URL with the parameters in the URL, and just embedding that image in the page, whereas the graph explorer is all done within XI and generated directly onto the page.
I'll see what we can do about this when the developers come back in tomorrow.
I'll see what we can do about this when the developers come back in tomorrow.
Former Nagios employee
Re: Nagios XI graph explorer
That was my guess too, but I was hoping there was a way.
It doesn't have to be a link, it can be an API I can use, or a section of code I can insert into my page and change a few parameters. But the best option would be a link directly to the graph in Nagios XI interface.
It doesn't have to be a link, it can be an API I can use, or a section of code I can insert into my page and change a few parameters. But the best option would be a link directly to the graph in Nagios XI interface.
Re: Nagios XI graph explorer
I went ahead and filed an internal feature request for this. I think the API might be easiest since we already have a bit of an API in place for XI: http://assets.nagios.com/downloads/nagi ... nd_API.pdf
Would that get you at least close to what you need in the meantime?
Would that get you at least close to what you need in the meantime?
Former Nagios employee
Re: Nagios XI graph explorer
Thanks for making this a feature request.
I can't find anything concerning graphs or perfdata in the backend API you mentioned. I'll just link to the service page, or a list of services on the host for now.
I started testing Nagios XI 2014 and I must say that I like the integration of tools (e.g. Capacity Planning and Network Traffic Analysis tabs in service details). It would be great if graph explorer could be a bit more integrated with the rest of XI because those graphs are much more useable than rrdtool graphs (and load faster for some reason, at least on my test VM). There are graph explorer graphs when you click on the little graph icon next to service name, but it only renders the 24 hour graph. It would be great if there was a link in service details that led directly to the service graph inside graph explorer.
I can't find anything concerning graphs or perfdata in the backend API you mentioned. I'll just link to the service page, or a list of services on the host for now.
I started testing Nagios XI 2014 and I must say that I like the integration of tools (e.g. Capacity Planning and Network Traffic Analysis tabs in service details). It would be great if graph explorer could be a bit more integrated with the rest of XI because those graphs are much more useable than rrdtool graphs (and load faster for some reason, at least on my test VM). There are graph explorer graphs when you click on the little graph icon next to service name, but it only renders the 24 hour graph. It would be great if there was a link in service details that led directly to the service graph inside graph explorer.
Re: Nagios XI graph explorer
If you right click on the performance tab and open in a new window, you should get the full url:
Code: Select all
http://<ip>/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=<hostname>&service=<servicename>&dest=auto#tab-perfgraphsFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Nagios XI graph explorer
Great, thanks - I don't know why I haven't tried that. This will certainly be better than a link to service details which would open the Overview tab.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios XI graph explorer
I agree, unfortunately thats how it works right now, Tmcdonald got the feature request in so keep your eyes peeled for the possibility of it appearing on the change log in future 2014 releases!