Page 1 of 1
Can I filter a service under a host?
Posted: Fri Jan 29, 2016 11:27 am
by igarcia
Hi,
We have a default template with a specific contact group for all the production hosts, but We don't want this group to view a specific service associated to the hosts.
The nexo of the service is only a host group.
I remember the "!" operator under the hosts variable on nagios core, but We don't see this option on the ccm
Thanks,
Regards.
Re: Can I filter a service under a host?
Posted: Fri Jan 29, 2016 3:08 pm
by lmiltchev
You can try something similar to what scottwilkerson described here:
https://support.nagios.com/forum/viewto ... 170#p83063
If this doesn't work, you could always manage configs manually by placing them in the "static" directory. In this case, you will be able to use ("!") exclusions.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Re: Can I filter a service under a host?
Posted: Sun Jan 31, 2016 3:47 pm
by igarcia
I tried with the free variables, but when I put the negation symbol with the contact_group, nagios doesn't understand this, Does it's possible exclude the contact group for a service?
Thanks,
Regards.
Re: Can I filter a service under a host?
Posted: Mon Feb 01, 2016 12:59 pm
by lmiltchev
The "hack" posted by scottwilkerson was tested with hostgroups. There is no guarantee it will work with contactgroups. If this is not working for you, the only other option (as I see it) is to manage these objects manually by placing them in the "static" directory. Unfortunately, it is not possible to use exclusions ("!") in XI as in Core.