Can I filter a service under a host?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
igarcia
Posts: 23
Joined: Mon Jul 04, 2011 5:05 am

Can I filter a service under a host?

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Can I filter a service under a host?

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
igarcia
Posts: 23
Joined: Mon Jul 04, 2011 5:05 am

Re: Can I filter a service under a host?

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Can I filter a service under a host?

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked