Page 1 of 1

Host and services Details

Posted: Wed Mar 13, 2019 6:11 am
by RIDS_I2MP
Hello Team,

We have almost 500 servers monitored in our Nagios XI server.

We want to get the data of all hosts and respective services running on them. In other words, I want to get the details of all hosts and which services are running on which host.

Can you please let me know if it is possible to get the data?

Re: Host and services Details

Posted: Wed Mar 13, 2019 7:37 am
by scottwilkerson
This is available in the API
Go to Help -> Objects Reference

and you can pull these from

Code: Select all

GET objects/hoststatus
GET objects/servicestatus

Re: Host and services Details

Posted: Thu Mar 14, 2019 6:57 am
by RIDS_I2MP
Hello,

I am not able to find that option in GUI. PFA the screen shot for the same.

Re: Host and services Details

Posted: Thu Mar 14, 2019 7:02 am
by scottwilkerson
RIDS_I2MP wrote: I am not able to find that option in GUI. PFA the screen shot for the same.
Oh, you are running an old version, the API was added in XI 5.0.0+

If you upgrade to the latest you would have those options
https://assets.nagios.com/downloads/nag ... ctions.pdf