Xymon Mailing List Archive search

Layout

4 messages in this thread

list David Welker · Mon, 7 Dec 2015 12:13:31 -0500 ·
I'm already familiar with "group"-ing things in almost every way possible
(sorted, compressed, etc.), but was wondering if there is a way to indent
or put different icons in the front of entries in the same group?

For example:

                    col1 col2 col3 col4 col5 col6
                    ------ ------ ------ ------ ------ ------
host 1              3     3     3
  switch 1                              1     1     1
  switch 2                              2     2     2
host 2              4     4     4
  switch 1                              1     1     1
  switch 2                              2     2     2

I was hoping changing fonts would work, but adding different header types,
for example, simply made Xymon see that as part of the hostname for each
entry, even when adding non-breaking spaces in front of an entry in
hosts.cfg,

Thanks,
David
list Japheth Cleaver · Tue, 8 Dec 2015 07:19:50 -0800 ·
quoted from David Welker

On Mon, December 7, 2015 9:13 am, David Welker wrote:
I'm already familiar with "group"-ing things in almost every way possible
(sorted, compressed, etc.), but was wondering if there is a way to indent
or put different icons in the front of entries in the same group?

For example:

                    col1 col2 col3 col4 col5 col6
                    ------ ------ ------ ------ ------ ------
host 1              3     3     3
  switch 1                              1     1     1
  switch 2                              2     2     2
host 2              4     4     4
  switch 1                              1     1     1
  switch 2                              2     2     2

I was hoping changing fonts would work, but adding different header types,
for example, simply made Xymon see that as part of the hostname for each
entry, even when adding non-breaking spaces in front of an entry in
hosts.cfg,

David,

At the moment, there's no easy way to do this. There might be a short term
solution in the form of an arbitrary HTML prepend that could be configured
in hosts.cfg (DISPLAYPREFIX:"html here" ?) but it'd be something of a
hack. Do you think that would work for you?

Longer term, the goal would be to make things like this CSS-controlled,
and either reflective of a list relationship between "host 1" and "switch
1/2" in your example, or making all switches a 'type' that can then be CSS
controlled. The stripping out of display HTML is on the radar for 4.4, but
there's still additional work needing to be done.

Regards,
-jc
list David Welker · Tue, 8 Dec 2015 11:01:45 -0500 ·
JC,

Naturally, CSS-controlled would be the best solution, but your proposed
"hack" would work on older versions of Xymon (I'm still on v4.3.21)?  I'm
thinking if there was just a way to ignore html tags when determining the
hostname from hosts.cfg, this hack of yours could work!

Thanks,
David


On Tue, Dec 8, 2015 at 10:19 AM, J.C. Cleaver <user-87556346d4af@xymon.invalid>
quoted from Japheth Cleaver
wrote:
On Mon, December 7, 2015 9:13 am, David Welker wrote:
I'm already familiar with "group"-ing things in almost every way possible
(sorted, compressed, etc.), but was wondering if there is a way to indent
or put different icons in the front of entries in the same group?

For example:

                    col1 col2 col3 col4 col5 col6
                    ------ ------ ------ ------ ------ ------
host 1              3     3     3
  switch 1                              1     1     1
  switch 2                              2     2     2
host 2              4     4     4
  switch 1                              1     1     1
  switch 2                              2     2     2

I was hoping changing fonts would work, but adding different header
types,
for example, simply made Xymon see that as part of the hostname for each
entry, even when adding non-breaking spaces in front of an entry in
hosts.cfg,

David,

At the moment, there's no easy way to do this. There might be a short term
solution in the form of an arbitrary HTML prepend that could be configured
in hosts.cfg (DISPLAYPREFIX:"html here" ?) but it'd be something of a
hack. Do you think that would work for you?

Longer term, the goal would be to make things like this CSS-controlled,
and either reflective of a list relationship between "host 1" and "switch
1/2" in your example, or making all switches a 'type' that can then be CSS
controlled. The stripping out of display HTML is on the radar for 4.4, but
there's still additional work needing to be done.

Regards,
-jc

list Japheth Cleaver · Tue, 8 Dec 2015 08:57:15 -0800 ·
quoted from David Welker
On Tue, December 8, 2015 8:01 am, David Welker wrote:
JC,

Naturally, CSS-controlled would be the best solution, but your proposed
"hack" would work on older versions of Xymon (I'm still on v4.3.21)?  I'm
thinking if there was just a way to ignore html tags when determining the
hostname from hosts.cfg, this hack of yours could work!

Well, there's probably a fair amount of stuff out there that reads the
hosts.cfg file in expecting `grep ^[0-9] | awk '{print $2}'` (or something
similar) to represent spaceless hostnames only.

However, I think a separate config tag (pre-only? separate pre/post? use
format or '&H' string to wrap what xymongen already displays?) should be
fairly do-able. And yep, it could be done in the 4.3 branch as a patch.

I'll see if this is something I can get a working version of for inclusion.


Regards,
-jc
quoted from David Welker

On Tue, Dec 8, 2015 at 10:19 AM, J.C. Cleaver <user-87556346d4af@xymon.invalid>
wrote:
On Mon, December 7, 2015 9:13 am, David Welker wrote:
I'm already familiar with "group"-ing things in almost every way
possible
(sorted, compressed, etc.), but was wondering if there is a way to
indent
or put different icons in the front of entries in the same group?

For example:

                    col1 col2 col3 col4 col5 col6
                    ------ ------ ------ ------ ------ ------
host 1              3     3     3
  switch 1                              1     1     1
  switch 2                              2     2     2
host 2              4     4     4
  switch 1                              1     1     1
  switch 2                              2     2     2

I was hoping changing fonts would work, but adding different header
types,
for example, simply made Xymon see that as part of the hostname for
each
entry, even when adding non-breaking spaces in front of an entry in
hosts.cfg,

David,

At the moment, there's no easy way to do this. There might be a short
term
solution in the form of an arbitrary HTML prepend that could be
configured
in hosts.cfg (DISPLAYPREFIX:"html here" ?) but it'd be something of a
hack. Do you think that would work for you?

Longer term, the goal would be to make things like this CSS-controlled,
and either reflective of a list relationship between "host 1" and
"switch
1/2" in your example, or making all switches a 'type' that can then be
CSS
controlled. The stripping out of display HTML is on the radar for 4.4,
but
there's still additional work needing to be done.

Regards,
-jc