Nagios Rest API for getting all services to particular host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

Nagios Rest API for getting all services to particular host

Post 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.
scottwilkerson
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

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked