hosgroup summary API
hosgroup summary API
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
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.
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.
Re: hosgroup summary API
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
It is a programming problem a developer should solve, but it is just 3 API calls to get all the datarjmon wrote:Looks like it needs lot of effort to filter the hostgroup that i am interested.