Page 1 of 1

Nagios Rest API for getting all services to particular host

Posted: Thu Jun 13, 2019 2:04 am
by vinish098
Hello Team,

We are trying to get the service status by following the Rest API Document provided by Nagios XI->Help->

In that Rest API we are finding all services for all hosts. Can we get particular host services along with id's.

Is there any API for getting all services on particular host.

If you provide one document it's great to follow that document.

Re: Nagios Rest API for getting all services to particular h

Posted: Thu Jun 13, 2019 3:20 pm
by scottwilkerson
If you just want a single host the call would look like the following replacing APIKEY and localhost

Code: Select all

/nagiosxi/api/v1/objects/service?apikey=APIKEY&pretty=1&host_name=localhost