Page 1 of 2

Dashboard with Trend Repots dashlet

Posted: Fri Dec 17, 2010 11:48 am
by rbsinclair
Greetings --

Is there a way to create a dashboard that contains dashlet(s) that contains trend reports(s) for hosts/services?
The URL dashlet looks as though this may be possible, but I can not figure out how to link the URL for the reports.

Bruce Sinclair
ECHO Labs

Re: Dashboard with Trend Repots dashlet

Posted: Fri Dec 17, 2010 12:24 pm
by mguthrie
Most of the information in Nagios is accessed by URL arguments. If you're looking to access trends for a particular host or service, that should be a piece of cake. Try this as your URL and let me know how it works.

http://<yourserver>/nagiosxi/includes/components/nagioscore/ui/trends.php?host=<hostname>&noheader

Re: Dashboard with Trend Repots dashlet

Posted: Fri Dec 17, 2010 12:51 pm
by rbsinclair
Mguthrie --

Thanks for the quick response.

I may not have fully detailed my request.

I have created a separate dashboard, within that dashboard I want to have a dashlet that will display trend reports for hosts and/or services.
Which dashlet should I use to display this, or is this possible?

Thanks
Bruce Sinclair
ECHO Labs

Re: Dashboard with Trend Repots dashlet

Posted: Fri Dec 17, 2010 1:11 pm
by mguthrie
Ok, I see what you're saying. I was thinking that the URL dashlet could take a URL as an argument, but it look like that needs to be hardcoded in.

Making a dashlet that does this wouldn't be terribly hard. Would it work if there was a URL dashlet where you can enter the URL for it when it's created? That way you can pretty much paste just about any internal link in Nagios and have it as a dashlet. Thoughts?

Re: Dashboard with Trend Repots dashlet

Posted: Fri Dec 17, 2010 1:55 pm
by rbsinclair
OK, looks like we are on the same page now.
What you propose would be nice. Even better, since we are getting there, an ideal dashlet would provide "up-to-date" data. Sounds a bit more difficult but would be more useful.

Thanks for the quick responses.

Re: Dashboard with Trend Repots dashlet

Posted: Fri Dec 17, 2010 4:03 pm
by mguthrie
I'll see if I can take a stab at that in the next week or two. I'll probably keep it simple, but if it's simply calling an internal URL within Nagios, the actual page that it's calling should be doing the work for keeping the data fresh, but I'll see what I can do.

Re: Dashboard with Trend Repots dashlet

Posted: Fri Dec 17, 2010 4:13 pm
by rbsinclair
Thanks, look forward to your effort.
Happy Holidays.

Re: Dashboard with Trend Repots dashlet

Posted: Mon Dec 20, 2010 3:12 pm
by mguthrie
Ok, so I'm working on a simple "URL Dashlet Builder," where you can create as many URL dashlets as you want (and they can be selected from the list of available dashlets. Do you have any interest in helping test this once I get it close to ready?

Re: Dashboard with Trend Repots dashlet

Posted: Mon Dec 20, 2010 3:17 pm
by rbsinclair
I would be interested in testing.

Re: Dashboard with Trend Repots dashlet

Posted: Mon Dec 20, 2010 7:00 pm
by admin
Right click in the report window and select "Open Frame in New Window". You can then see the URL that could be used to directly access the report and embed it in a URL dashlet.