Exclude / Sub set of Host / Hostgroups

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

Exclude / Sub set of Host / Hostgroups

Post by sib »

Hi

I currently use the new Nagios XI 5.2.1

- Is it possible to define a service including hostgroups but exclude single hosts? In the config file it would be

hostgroup_name somegroup
host !excludedhost

- Or how can I create subsets. I have hosts in prod and clustered. But both hostgroups have extra hosts. I want to select only the hosts that are in both the hostgroups.
- What are the hostgroups options (+,null,standard) I can not find any documentation about them.

Thanks
Chris
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Exclude / Sub set of Host / Hostgroups

Post by scottwilkerson »

This is on the roadmap, but as a workaround you can use the process described here
https://support.nagios.com/forum/viewto ... 170#p83063
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

Re: Exclude / Sub set of Host / Hostgroups

Post by sib »

Hi

Thanks for the workaround. Can this be used to exclude hostgroups as well?

Hostgroup_name prod,!sec
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Exclude / Sub set of Host / Hostgroups

Post by lmiltchev »

It is not possible to exclude hostgroups in the CCM - at least I am not aware of any "workarounds". The only way to accomplish this is to place your configs in the "static" directory and manage them manually.

https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

Re: Exclude / Sub set of Host / Hostgroups

Post by sib »

Thanks.

That is what I have done so far.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Exclude / Sub set of Host / Hostgroups

Post by rkennedy »

As this has been answered, and is on the road map - do you mind if I close this thread out?
Former Nagios Employee
Locked