Xymon Mailing List Archive search

create an alternate pageset dynamically

2 messages in this thread

list Torsten Richter · Wed, 14 Sep 2016 18:54:26 +0200 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey folks,

normally to create an alternate pageset one has to have these tags in
hosts.cfg on the lines where the servers should be added to the pageset.
Is it possible - lets say with xymongen - to create an alternate pageset
without having these tags in the config file?

In my case I want to create a pageset where all servers will be located
that have a special test and I don't want to edit hosts.cfg every time
when a new server gets the test or an old one loses it.

TIA
Torsten
- -- 
+---------------------------------------------------------+
| E-mail  : user-c862b499d9fa@xymon.invalid			  |
|							  |
| Homepage: http://www.richter-it.net/			  |
+---------------------------------------------------------+
Download my public key from:
http://keys.gnupg.net/pks/lookup?search=0x899093AC&op=get
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlfZgMIACgkQ7DlmxomQk6x9qwCeI+hpfV3GBeTcSWUc6buG05Zs
Vi4AoJxcOOAcqGjFYt3jHF3y1WjvcfgJ
=/3qw
-----END PGP SIGNATURE-----
list Norbert Kriegenburg · Wed, 14 Sep 2016 20:31:42 +0200 ·
Hi Torsten,

What i usually do to achive this is to use the include file directive.
just insert something like this in hosts.cfg:

subpage specialpage servers with special tests
include include_special_hosts.cfg

and create your include file dynamically by a cronjob (or even a Xymon
test).
Just generate the file include_special_hosts.cfg dynamically like:

group-compress server with special tests
0.0.0.0 servername1 # noconn
0.0.0.0 servername2 # noconn
0.0.0.0 servername3 # noconn

Of course there must be a section in hosts.cfg with definitions for these
severs.
I use this f.e. to create pagesets with pages for every OS.

HTH

Norbert


From:	Torsten Richter <user-c862b499d9fa@xymon.invalid>
To:	"xymon at xymon.com" <xymon at xymon.com>
Date:	14/09/2016 18:54
Subject:	[Xymon] create an alternate pageset dynamically
Sent by:	"Xymon" <xymon-bounces at xymon.com>
quoted from Torsten Richter


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey folks,

normally to create an alternate pageset one has to have these tags in
hosts.cfg on the lines where the servers should be added to the pageset.
Is it possible - lets say with xymongen - to create an alternate pageset
without having these tags in the config file?

In my case I want to create a pageset where all servers will be located
that have a special test and I don't want to edit hosts.cfg every time
when a new server gets the test or an old one loses it.

TIA
Torsten
- --
+---------------------------------------------------------+
| E-mail  : user-c862b499d9fa@xymon.invalid		 		 		   |
|
	   |
| Homepage: http://www.richter-it.net/
|
+---------------------------------------------------------+
Download my public key from:
http://keys.gnupg.net/pks/lookup?search=0x899093AC&op=get
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlfZgMIACgkQ7DlmxomQk6x9qwCeI+hpfV3GBeTcSWUc6buG05Zs
Vi4AoJxcOOAcqGjFYt3jHF3y1WjvcfgJ
=/3qw
-----END PGP SIGNATURE-----