Page 1 of 1

Need to exclude a hostgroup for a service

Posted: Fri Sep 12, 2014 4:25 pm
by eloyd
If I were in Nagios Core, I'd just write

Code: Select all

hostgroup_name                HOSTGROUP1,HOSTGROUP2,!HOSTGROUP3,!HOSTGROUP4
But I'm in Nagios XI.

How can I put a service onto a list of hostgroups, but then exclude it from running on another set of hostgroups?

Re: Need to exclude a hostgroup for a service

Posted: Mon Sep 15, 2014 2:24 pm
by sreinhardt
Hmm I see what you mean, lacking negate or the ability to modify hostgroup names. I suppose I would try creating a service template to apply, that resides in the static directory. Specifically I would have this template only negate hostgroups, so that it can be assigned without worrying about further complications. I realize this isn't ideal, so I put in a feature request to allow negating of host\service groups within CCM.

Re: Need to exclude a hostgroup for a service

Posted: Mon Sep 15, 2014 2:42 pm
by eloyd
That was my current workaround, but I wanted to know if I was missing anything.

Re: Need to exclude a hostgroup for a service

Posted: Mon Sep 15, 2014 3:10 pm
by slansing
Yeah, unfortunately that is the only real way to do this right now. We've had questions about it in the past and have an internal feature request in the works.

Re: Need to exclude a hostgroup for a service

Posted: Mon Sep 15, 2014 3:18 pm
by eloyd
I can't wait for the day I ask a question that ends in someone telling me that I should RTFM. All my questions are answered with "yah, we'll be doing that someday." :)

Re: Need to exclude a hostgroup for a service

Posted: Mon Sep 15, 2014 4:31 pm
by slansing
Most of em' :), I'll be looking for one Eric, then I'll let you know :D.