Query Hosts not in Hostgroups

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
FCC_Nagios_Support
Posts: 161
Joined: Tue Mar 10, 2020 11:07 am

Query Hosts not in Hostgroups

Post by FCC_Nagios_Support »

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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Query Hosts not in Hostgroups

Post by scottwilkerson »

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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked