Page 1 of 1

Exclude / Sub set of Host / Hostgroups

Posted: Tue Nov 10, 2015 10:45 am
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

Re: Exclude / Sub set of Host / Hostgroups

Posted: Tue Nov 10, 2015 1:48 pm
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

Re: Exclude / Sub set of Host / Hostgroups

Posted: Wed Nov 11, 2015 12:48 am
by sib
Hi

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

Hostgroup_name prod,!sec

Re: Exclude / Sub set of Host / Hostgroups

Posted: Wed Nov 11, 2015 10:37 am
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

Re: Exclude / Sub set of Host / Hostgroups

Posted: Thu Nov 12, 2015 7:41 am
by sib
Thanks.

That is what I have done so far.

Re: Exclude / Sub set of Host / Hostgroups

Posted: Thu Nov 12, 2015 3:40 pm
by rkennedy
As this has been answered, and is on the road map - do you mind if I close this thread out?