Xymon Mailing List Archive search

multiple class assignment in hosts.cfg

list David Winterstein
Fri, 19 May 2017 13:11:28 +0200
Message-Id: <user-cac6197eb153@xymon.invalid>

Hi everybody,

I didn't find something on this topic yet, so I thought I'd give it a
quick try at the mailing list:

Since the class assignment now works like a charm with analysis.cfg and
hosts.cfg (thanks a lot for that!) I wondered how I could possibly
assign multiple classes to a host.

Given an analysis.cfg containing something like this:

  CLASS=class1
    PROC sshd 1 1
  CLASS=class2
    PROC ntpd 1 1

A hosts.cfg like this only uses the first class provided - "class1" in
this case:

  1.2.3.4 srv.dom.tld # CLASS:class1 CLASS:class2

While a hosts.cfg like this seems to combine both class names to the
new, unhandled group "class1,class2":

  1.2.3.4 srv.dom.tld # CLASS:class1,class2

Is there a solution for this already or is it not possible to assign
multiple groups to a single host?

Thanks a lot in advance,
  David Winterstein

Compositiv GmbH
Hammer Deich 30
20537 Hamburg
Tel: XXX / XXX XXXX X
Fax: XXX / XXX XXXX XX

Geschäftsführer Matthias Krawen
Amtsgericht Hamburg - HRB 122540

USt.-IdNr: DE282432834
Es gelten ausschließlich unsere AGB.