create an alternate pageset dynamically
-----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 : bb4 [at] richter-it.net | | | | 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-----
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 <bb4 at richter-it.net> 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>
-----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 : bb4 [at] richter-it.net | | | | 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-----
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
participants (2)
-
bb4@richter-it.net
-
norbert.kriegenburg@de.ibm.com