Page 1 of 1
Finding the IP address of parent host
Posted: Thu Jun 09, 2011 2:07 pm
by cskang
I need to find the host name (IP address is ok too) of Parent host of a specified host.
How can I do this?
Re: Finding the IP address of parent host
Posted: Mon Jun 13, 2011 10:47 am
by mguthrie
Can you give us a little more detail as to where you need this and what you need it for? I'm not really sure how to answer that without more explanation.
Re: Finding the IP address of parent host
Posted: Wed Jun 15, 2011 11:46 pm
by cskang
I am planning to design a web-page that finds all parents for a user specified host, and then search for the data in the service output of the parent hosts.
I was hoping that backendapiURL may have a link which may display host and parent host relationship, but I could not find any.
Is there a plan for NagiosXI backendapiURL to include a link to have read access to host-parent host relationship?
Or is there any alternative way to access the current host and parent host relationship from php web page?
Re: Finding the IP address of parent host
Posted: Mon Jun 20, 2011 3:14 pm
by mguthrie
We have backend data commands for XML, take a look at these and see if they get you what you need.
[url]http://<yourhost>/nagiosxi/backend/?cmd=getparenthosts[/url]
[url]http://<yourhost>/nagiosxi/backend/?cmd=gethosts[/url]
Re: Finding the IP address of parent host
Posted: Mon Jun 20, 2011 11:37 pm
by cskang
Thanks.
https://<yourhost>/nagiosxi/backend/?cmd=getparenthosts
provided me the information that I was searching for.
Regards,
Charles
Re: Finding the IP address of parent host
Posted: Tue Jun 21, 2011 4:58 pm
by mguthrie
Good deal! Let us know if you have any additional questions.