[Xymon] Nesting include files hosts.cfg

cleaver at terabithia.org cleaver at terabithia.org
Thu Dec 13 00:25:46 CET 2012


> Is there a way I could do something along the lines of:
> having a file - tests.dat
> test1 test2 test3
>
> and including it into a file
> hosts.dat
> host1 # include tests.dat
> host2 # include tests.dat
> host3 # include tests.dat
>
> and then putting in into the hosts.cfg file
>
> group-old test1|test2|test3
> include hosts.dat


Sadly, no... include (and directory) operate on a per-line basis.

FWIW, when I get to the point where there's a ton of repeated content like
that, I simply 'include' a generated file (whether textually assembled or
DB-driven).


HTH,

-jc




More information about the Xymon mailing list