Show 'Critical services' on an intranet page

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
CedricD
Posts: 15
Joined: Wed Nov 20, 2013 5:43 am

Show 'Critical services' on an intranet page

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Show 'Critical services' on an intranet page

Post 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.
Former 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.
CedricD
Posts: 15
Joined: Wed Nov 20, 2013 5:43 am

Re: Show 'Critical services' on an intranet page

Post 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?

Image
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Show 'Critical services' on an intranet page

Post 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.
Former 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.
CedricD
Posts: 15
Joined: Wed Nov 20, 2013 5:43 am

Re: Show 'Critical services' on an intranet page

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Show 'Critical services' on an intranet page

Post 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.
Former 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.
CedricD
Posts: 15
Joined: Wed Nov 20, 2013 5:43 am

Re: Show 'Critical services' on an intranet page

Post by CedricD »

I've found something else in nagios to do this. It's fixed :).

Thanks.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Show 'Critical services' on an intranet page

Post by slansing »

Great.
Locked