Xymon Mailing List Archive search

group-only|group-except on alternate pagesets

5 messages in this thread

list Torsten Richter · Tue, 19 Jan 2010 00:11:21 +0100 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there everyone,

is it possible to use the group-only/group-except directive also for
alternate pagesets?
Background: I have a few servers that appear on a subpage twice (once
with all the system tests and the other time with the application tests)
Now I created a view for another department for these machines.
And they want to have the same segmentation as on the operating view.
But on their view the servers appear twice with all tests.

TIA
Torsten
- --
+---------------------------------------------------------+
| Richter IT-Consulting					  |
| E-mail  : user-c862b499d9fa@xymon.invalid			  |
|							  |
| Homepage: http://www.richter-it.net/			  |
+---------------------------------------------------------+
Download my public key from:
http://www.keyserver.net:11371/pks/lookup?op=get&search=0x899093AC
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)

iD8DBQFLVOqZHcGBZI75wqYRApHoAKDTeV3iLxK1lhoNV3D6ENYmzGQwwwCfcAQ8
DFZS+Lx7r0fymZkTD0/7IRM=
=jKJo
-----END PGP SIGNATURE-----
list Richard Finegold · Thu, 21 Jan 2010 17:41:05 -0800 ·
quoted from Torsten Richter
On Mon, Jan 18, 2010 at 15:11, Torsten Richter <user-c862b499d9fa@xymon.invalid> wrote:
is it possible to use the group-only/group-except directive also for
alternate pagesets?
Background: I have a few servers that appear on a subpage twice (once
with all the system tests and the other time with the application tests)
Now I created a view for another department for these machines.
And they want to have the same segmentation as on the operating view.
But on their view the servers appear twice with all tests.
Works here, for both group-only and group-except, as of Xymon 4.2.3.
Did you attempt it?
list Torsten Richter · Fri, 22 Jan 2010 14:10:43 +0100 (CET) ·
Hi Richard,

Richard Finegold <user-6a016aac278a@xymon.invalid> hat am 22. Januar 2010 um 02:41
geschrieben:
quoted from Torsten Richter
On Mon, Jan 18, 2010 at 15:11, Torsten Richter <user-c862b499d9fa@xymon.invalid> wrote:
is it possible to use the group-only/group-except directive also for
alternate pagesets?
Background: I have a few servers that appear on a subpage twice (once
with all the system tests and the other time with the application tests)
Now I created a view for another department for these machines.
And they want to have the same segmentation as on the operating view.
But on their view the servers appear twice with all tests.
Works here, for both group-only and group-except, as of Xymon 4.2.3.
Did you attempt it?
Yes I tried with 4.3.0-beta2 but I have the separation only on the normal view
and on the other view I have the servers twice with all the tests.
What did you enter in your bb-hosts to accomplish this??

Cheers
Torsten
list Richard Finegold · Mon, 25 Jan 2010 17:43:10 -0800 ·
quoted from Torsten Richter
On Fri, Jan 22, 2010 at 05:10, user-c862b499d9fa@xymon.invalid <user-c862b499d9fa@xymon.invalid> wrote:
Richard Finegold <user-6a016aac278a@xymon.invalid> hat am 22. Januar 2010 um 02:41
geschrieben:
On Mon, Jan 18, 2010 at 15:11, Torsten Richter <user-c862b499d9fa@xymon.invalid> wrote:
is it possible to use the group-only/group-except directive also for
alternate pagesets?
Background: I have a few servers that appear on a subpage twice (once
with all the system tests and the other time with the application tests)
Now I created a view for another department for these machines.
And they want to have the same segmentation as on the operating view.
But on their view the servers appear twice with all tests.
Works here, for both group-only and group-except, as of Xymon 4.2.3.
Did you attempt it?
Yes I tried with 4.3.0-beta2 but I have the separation only on the normal
view and on the other view I have the servers twice with all the tests.
What did you enter in your bb-hosts to accomplish this??
I'm using a pageset named "city" to do a view by site. My normal view
is by host type. (Pages for routers, switches, file servers, SQL
servers, license servers, etc.)
So I have a line of citypage followed by sets of citysubpage/citytitle
and multiple lines of citygroup for each citysubpage. And I changed a
citygroup to a citygroup-only line and a citygroup-except line just to
confirm it was viable; it only affects the display so experiments are
harmless.

Some of the hosts are important enough to be on the main page in
addition to the host type page. For the front page entry, I use
noconn. Here's a line for a host in both main page and a subpage.

  10.1.yyy.zz merlin      # CITY:crp CITY:crp,9 class:intcrit
route:crp-rtr snmp http://merlin/ ftp testip
DEVMON:model(compaq;server) TRENDS:*,disk:disk|disk1

The script I'm using:

BBWEB="/hobbit/city"
$BBHOME/bin/bbgen --pageset=city --subpagecolumns=3 --pagetitle-links
--pagetext-headings --maxrows=10 --nopropred=msgs
--nopropyellow=msgs,flexlm $BBHOME/www/city/

Note that, for this host on the alternate pageset, it's listed twice
on a single http://<host>/hobbit/city/city/crp/crp.html web page, once
in an unnamed group (what might be considered the 0'th group) between
citysubpage and citytitle, and once within the 9th group. Since the
unnamed group doesn't have a corresponding citygroup line, it can't be
a group-only or group-except type, but the 9th can.

If you're still having trouble, I suggest posting a short excerpt of
your bb-hosts file with the pageset directives and 1 or 2 hosts; maybe
create a third pageset temporarily.
list Torsten Richter · Tue, 26 Jan 2010 18:52:22 +0100 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Richard,

thanks for the answer. I did not realise that I could use the -except
and -only tags also for the alternate pageset definitions.
Now it works and everyone is happy.
So thank you very much for your help.

Cheers
Torsten
quoted from Richard Finegold

Richard Finegold wrote:
On Fri, Jan 22, 2010 at 05:10, user-c862b499d9fa@xymon.invalid <user-c862b499d9fa@xymon.invalid> wrote:
Richard Finegold <user-6a016aac278a@xymon.invalid> hat am 22. Januar 2010 um 02:41
geschrieben:
On Mon, Jan 18, 2010 at 15:11, Torsten Richter <user-c862b499d9fa@xymon.invalid> wrote:
is it possible to use the group-only/group-except directive also for
alternate pagesets?
Background: I have a few servers that appear on a subpage twice (once
with all the system tests and the other time with the application tests)
Now I created a view for another department for these machines.
And they want to have the same segmentation as on the operating view.
But on their view the servers appear twice with all tests.
Works here, for both group-only and group-except, as of Xymon 4.2.3.
Did you attempt it?
Yes I tried with 4.3.0-beta2 but I have the separation only on the normal
view and on the other view I have the servers twice with all the tests.
What did you enter in your bb-hosts to accomplish this??
I'm using a pageset named "city" to do a view by site. My normal view
is by host type. (Pages for routers, switches, file servers, SQL
servers, license servers, etc.)
So I have a line of citypage followed by sets of citysubpage/citytitle
and multiple lines of citygroup for each citysubpage. And I changed a
citygroup to a citygroup-only line and a citygroup-except line just to
confirm it was viable; it only affects the display so experiments are
harmless.

Some of the hosts are important enough to be on the main page in
addition to the host type page. For the front page entry, I use
noconn. Here's a line for a host in both main page and a subpage.

  10.1.yyy.zz merlin      # CITY:crp CITY:crp,9 class:intcrit
route:crp-rtr snmp http://merlin/ ftp testip
DEVMON:model(compaq;server) TRENDS:*,disk:disk|disk1

The script I'm using:

BBWEB="/hobbit/city"
$BBHOME/bin/bbgen --pageset=city --subpagecolumns=3 --pagetitle-links
--pagetext-headings --maxrows=10 --nopropred=msgs
--nopropyellow=msgs,flexlm $BBHOME/www/city/

Note that, for this host on the alternate pageset, it's listed twice
on a single http://<host>/hobbit/city/city/crp/crp.html web page, once
in an unnamed group (what might be considered the 0'th group) between
citysubpage and citytitle, and once within the 9th group. Since the
unnamed group doesn't have a corresponding citygroup line, it can't be
a group-only or group-except type, but the 9th can.

If you're still having trouble, I suggest posting a short excerpt of
your bb-hosts file with the pageset directives and 1 or 2 hosts; maybe
create a third pageset temporarily.

- --
+---------------------------------------------------------+
| Richter IT-Consulting					  |
| E-mail  : user-c862b499d9fa@xymon.invalid			  |
|							  |
| Homepage: http://www.richter-it.net/			  |
+---------------------------------------------------------+
Download my public key from:
http://www.keyserver.net:11371/pks/lookup?op=get&search=0x899093AC
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)

iD8DBQFLXyvWHcGBZI75wqYRAr1OAKCNZQEORFrPPp/96S2ne9KtdjD1cgCfdY0o
MP9bxyMfVqVVPmkuYKDQKew=
=Yo6s
-----END PGP SIGNATURE-----