Good Morning,
What is the Query to NagiosXI to get hosts which are not in two HostGroups ("status in production" neither "status move to production").
Thanks and Regards
Query Hosts not in Hostgroups
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Query Hosts not in Hostgroups
There isn't any query that provides this information.
You would have to craft a script that pulls information from the API, the relevant API endpoints are
GET objects/hostgroupmembers
GET objects/host
You would have to craft a script that pulls information from the API, the relevant API endpoints are
GET objects/hostgroupmembers
GET objects/host