[icinga-devel] combined hostgroups

Michael Friedrich michael.friedrich at gmail.com
Thu Feb 7 16:43:42 CET 2013

On 07.02.2013 16:38, Franky Van Liedekerke wrote:
> On 2013-02-07 14:09, Michael Friedrich wrote:
>> On 07.02.2013 12:59, Franky Van Liedekerke wrote:
>>> Hi,
>>> for a specific service, one can define the hostgroups like this:
>>> hostgroup_name groupA,groupB,!groupC
>>> which means: all hosts in group A or B, but none of those in group C
>>> Now the question:
>>> I have all servers in devel, qual and prod groups, some of those are
>>> also in a group webservers for which I want the same services. Some
>>> checks need different options between dev, qual and prod, so I
>>> created
>>> different commands for those.
>> i assume you are using the hostgroup->services + host trick here?
> I'm not really sure what you mean here ... I just created a different
> command in command.cfg, and in the service config I use the same name
> but linked to different hostgroups.
> But my question below remains of course :-)

You're throwing some config snippets in here, with an idea not very well 
described. my response indicates that i have a guess what you are trying 
to do, but without any configuration samples and some drawn picture, I 
doubt I may follow your approach.

>>> Now, how can I say that I want a specific service to be executed for
>>> all hosts that are in group devel and are also in group webservers
>>> (the
>>> intersection of the 2 groups)?
>>> Something like:
>>> hostgroup_name groupA+groupB
>>> would be nice to have ...
> Franky
> ------------------------------------------------------------------------------
> Free Next-Gen Firewall Hardware Offer
> Buy your Sophos next-gen firewall before the end March 2013
> and get the hardware for free! Learn more.
> http://p.sf.net/sfu/sophos-d2d-feb
> _______________________________________________
> icinga-devel mailing list
> icinga-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/icinga-devel

DI (FH) Michael Friedrich

mail:     michael.friedrich at gmail.com
twitter:  https://twitter.com/dnsmichi
jabber:   dnsmichi at jabber.ccc.de
irc:      irc.freenode.net/icinga dnsmichi

icinga open source monitoring
position: lead core developer
url:      https://www.icinga.org

More information about the icinga-devel mailing list