hosgroup summary API

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rjmon
Posts: 106
Joined: Wed Dec 06, 2017 11:39 am

hosgroup summary API

Post by rjmon »

Is it possible to query hostgroup summary API for one hostgroup. I would like to share that one hostgroup summary with users.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: hosgroup summary API

Post by scottwilkerson »

Not it one call, you would have to mage multiple calls, grab the members in the hostgroup with
GET objects/hostgroupmembers

Then iterate over the
GET objects/hoststatus
GET objects/servicestatus
pulling out data for the hosts that are members of the group you are looking for.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rjmon
Posts: 106
Joined: Wed Dec 06, 2017 11:39 am

Re: hosgroup summary API

Post by rjmon »

Looks like it needs lot of effort to filter the hostgroup that i am interested.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: hosgroup summary API

Post by scottwilkerson »

rjmon wrote:Looks like it needs lot of effort to filter the hostgroup that i am interested.
It is a programming problem a developer should solve, but it is just 3 API calls to get all the data
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked