Need to exclude a hostgroup for a service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Need to exclude a hostgroup for a service

Post 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?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Need to exclude a hostgroup for a service

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Need to exclude a hostgroup for a service

Post by eloyd »

That was my current workaround, but I wanted to know if I was missing anything.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Need to exclude a hostgroup for a service

Post 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.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Need to exclude a hostgroup for a service

Post 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." :)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Need to exclude a hostgroup for a service

Post by slansing »

Most of em' :), I'll be looking for one Eric, then I'll let you know :D.
Locked