[icinga-devel] combined hostgroups

Franky Van Liedekerke liedekef at telenet.be
Thu Feb 7 16:38:32 CET 2013

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 :-)

>> 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 ...


More information about the icinga-devel mailing list