Url to host status

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Url to host status

Post by WillemDH »

Hello,

Is it possible to manipulate an url so I just get the status of a host and its services?

http://servername/nagiosxi/includes/com ... w=services for example followed by, for example host=DUMMYSERVERNAME, which would result in getting some view like this: (like a permalink)
You do not have the required permissions to view the files attached to this post.
Nagios XI 5.8.1
https://outsideit.net
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Url to host status

Post by slansing »

Well you can pull this by using the get perma-link icon on a host/service combination by navigating to Home > Hosts > Clicking the hosts name, then using the expand button to see all of it's services, are you not looking for this?
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Url to host status

Post by WillemDH »

Yes it seems so. An when i attach a backend api, username and password wouldn't be required correct?
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Url to host status

Post by abrist »

WillemDH wrote:An when i attach a backend api, username and password wouldn't be required correct?
Yes, you do have to specify and username and ticket in the GET request parameters, but you do not need to login.
You could also get just the xml (data) for the request with:

Code: Select all

http://<ip>/nagiosxi/backend/?cmd=getservicestatus&combindedhost&host_name=<hostname>
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.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Url to host status

Post by WillemDH »

Ok, thanks. I tested and verified this and works perfectly! Thanks. thread can be closed.
Nagios XI 5.8.1
https://outsideit.net
Locked