Page 1 of 1

Url to host status

Posted: Tue Feb 25, 2014 7:57 am
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)

Re: Url to host status

Posted: Tue Feb 25, 2014 10:11 am
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?

Re: Url to host status

Posted: Tue Feb 25, 2014 10:24 am
by WillemDH
Yes it seems so. An when i attach a backend api, username and password wouldn't be required correct?

Re: Url to host status

Posted: Tue Feb 25, 2014 11:04 am
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>

Re: Url to host status

Posted: Wed Feb 26, 2014 9:37 am
by WillemDH
Ok, thanks. I tested and verified this and works perfectly! Thanks. thread can be closed.