Page 1 of 1
Show 'Critical services' on an intranet page
Posted: Fri Dec 06, 2013 10:33 am
by CedricD
Hello,
I'm referring to this topic:
http://support.nagios.com/forum/viewtop ... 86&p=79023
We want to show all our 'Critical Services' on an intranet page like my previous post (see above link).
We have following link:
http://monitor.company.com/nagiosxi/inc ... ustypes=16
We can show that page when users are not logged in with adding '&username=<user>&ticket=<ticket#>' to that URL.
But we want it to only show the hostname of the server that has critical services. (and not all the information on the page we receive)
Any ideas how to do this?
Thanks.
Re: Show 'Critical services' on an intranet page
Posted: Fri Dec 06, 2013 1:30 pm
by abrist
You can just parse the xml to fit your needs. Additionally, you can pass brevity=3 with the GET parameters to reduce the xml.
Re: Show 'Critical services' on an intranet page
Posted: Mon Dec 09, 2013 4:37 am
by CedricD
Now you are talking Chinese to me.
Can you be more specific? Thanks.
edit.
Let's say we want the Service Status Summary-dashlet on an intranet page. How we do that?

Re: Show 'Critical services' on an intranet page
Posted: Mon Dec 09, 2013 11:58 am
by abrist
CedricD wrote:Can you be more specific? Thanks.
It all depends what you want. If you want to make your own frontend and just want the xml, I can help you limit the xml to what you are looking for.
CedricD wrote: we want the Service Status Summary-dashlet on an intranet page. How we do that?
The easiest way to do this is to add the summary to a view in xi. Then open the view in a new tab. The url will be the direct url for that view. Add the user's ticket id and username to the url get parameters and you should be able to pull the frame externally into your custom frontend.
Re: Show 'Critical services' on an intranet page
Posted: Tue Dec 10, 2013 11:13 am
by CedricD
We have an intranet page with some tools that we use a lot. We already have some graphs from nagios included in that intranet page, which is great.
This is what we also want to show on our intranet page:
We have no idea how to edit the xml to fit our needs and we also have no idea to get a proper html output from the xml file.
I've found
this but can't understand how to limit the xml to show only the latest alerts table (point 2 in the list above).
-----------
Can you please be more specific with 'add the summary to a view in xi.' I can add that 'Service Status Summary' to a dashboard but I don't think this is what you mean?
Thanks for your time. I appreciate it.
Re: Show 'Critical services' on an intranet page
Posted: Tue Dec 10, 2013 11:19 am
by abrist
You can use a dashboard, or a view. You will find views to the left of the dashboards top menu option in XI.
Working with the xml for frontend integration requires web development knowledge - specifically parsing the xml into tables/js objects/etc. You may want to just use the ticketID system with a custom view/dashboard url.
Re: Show 'Critical services' on an intranet page
Posted: Mon Dec 16, 2013 10:06 am
by CedricD
I've found something else in nagios to do this. It's fixed

.
Thanks.
Re: Show 'Critical services' on an intranet page
Posted: Mon Dec 16, 2013 10:43 am
by slansing
Great.