[Check_mk (english)] Define host_group by multiple host_tags

Stier, Matthew Matthew.Stier at us.fujitsu.com
Tue Feb 5 12:58:12 CET 2013

I don't believe this will work.  It will simply define Store as the list of hosts with tag PC, and then redefine it as the list of hosts with tag Cashbox.

The only way to properly 'or' these groups would be to create a new tag and assign that tag to all hosts that have the PC and Cashbox tags.  Then use that tag to define Store.

IE: Add a 'store' tag each host that has a PC or Cashbox tag, and then create a 'Store' host_group based upon the 'store' tag.

From: checkmk-en-bounces at lists.mathias-kettner.de [mailto:checkmk-en-bounces at lists.mathias-kettner.de] On Behalf Of Marcel Schulte
Sent: Tuesday, February 05, 2013 5:54 AM
To: Preß, Philipp
Cc: checkmk-en at lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] Define host_group by multiple host_tags

Hi Philipp,

hosttags are not OR'ed but AND'ed - so hostgroup 'store' should include all hosts with tags 'PC' AND 'Cashbox'.

If that's not wanted try to define this (untested):

host_groups = [
  ('Cashboxes',    [ 'Cashbox' ],           ALL_HOSTS ),
  ('PCs',          [ 'PC' ],                ALL_HOSTS ),
  ('Test',         [ 'Test' ],              ALL_HOSTS ),
  ('Store',        [ 'PC' ],    ALL_HOSTS ),
  ('Store',        [ 'Cashbox' ],    ALL_HOSTS ),


2013/2/5 Preß, Philipp <philipp.press at dm.de<mailto:philipp.press at dm.de>>

I'm having issues defining a host_group by multiple host_tags:

define_hostgroups = True
define_servicegroups = True

all_hosts = [

host_groups = [
  ('Cashboxes',    [ 'Cashbox' ],           ALL_HOSTS ),
  ('PCs',          [ 'PC' ],                ALL_HOSTS ),
  ('Test',         [ 'Test' ],              ALL_HOSTS ),
  ('Store',        [ 'PC', 'Cashbox', ],    ALL_HOSTS ),

Host_groups defined by only one host_tag (Cashbox, PC, Test) show up on Icinga Web. The 'Store' host_group however, that should group together Cashboxes and PCs, does not.

Am I missing a point here?

Thanks in advance.


dm-drogerie markt GmbH + Co. KG
Telefon  +49 721 5592-2815<tel:%2B49%20721%205592-2815>
Telefax   +49 721 5592-92815<tel:%2B49%20721%205592-92815>
philipp.press at dm.de<mailto:philipp.press at dm.de>

Carl-Metz-Str. 17, 76185 Karlsruhe * Postfach 10 02 34, 76232 Karlsruhe
Telefon 0721 5592-2500 Telefax 0721 5592-2777
FILIADATA at dm-drogeriemarkt.de<mailto:FILIADATA at dm-drogeriemarkt.de> * www.FILIADATA.de<http://www.FILIADATA.de>
GmbH: Sitz Karlsruhe, Registergericht Mannheim, HRB 104927
Geschäftsführer: Erich Harsch, Martin Dallmeier, Roman Melcher

checkmk-en mailing list
checkmk-en at lists.mathias-kettner.de<mailto:checkmk-en at lists.mathias-kettner.de>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mathias-kettner.de/pipermail/checkmk-en/attachments/20130205/af0eb1cd/attachment-0001.html>

More information about the checkmk-en mailing list