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.
Nagios Rest API for getting all services to particular host
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios Rest API for getting all services to particular h
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