Xymon Mailing List Archive search

how to "escape" a column name

4 messages in this thread

list Joe Acquisto · Wed, 5 Jan 2011 16:38:22 -0500 ·
Perhaps someone knows offhand, to save me a lot of hacking.

Is it possible to "escape" a status message, so as to make a status column
heading appear on two lines?

such as ~/bin/bb my_host "status 'uname -n'.MyColumn\nName green `date` `cat
mytest`"

Or like that.
list Joe Acquisto · Thu, 6 Jan 2011 10:48:26 -0500 ·
This seems to work on hobbit 4.20.

~/bin/bb my_host "status 'uname -n'.MyColumn<br/>Name green `date` `cat
mytest`"

joe a
quoted from Joe Acquisto

On Wed, Jan 5, 2011 at 4:38 PM, Joe Acquisto <user-8a324efe5034@xymon.invalid> wrote:
Perhaps someone knows offhand, to save me a lot of hacking.

Is it possible to "escape" a status message, so as to make a status column
heading appear on two lines?

such as ~/bin/bb my_host "status 'uname -n'.MyColumn\nName green `date`
`cat mytest`"

Or like that.
list Henrik Størner · Fri, 7 Jan 2011 11:50:57 +0000 (UTC) ·
quoted from Joe Acquisto
In <user-32f06596ece5@xymon.invalid> Joe Acquisto <user-8a324efe5034@xymon.invalid> writes:
Is it possible to "escape" a status message, so as to make a status column
heading appear on two lines?
such as ~/bin/bb my_host "status 'uname -n'.MyColumn\nName green `date` `cat
mytest`"

I don't think you can do that. If possible, it would involve writing the
column-name as HTML, i.e. with a "<br>" for the newline. But I wouldn't 
be surprised if some parts of Xymon choked on those angle brackets as
part of a status-name.


Regards,
Henrik
list Joe Acquisto · Fri, 7 Jan 2011 09:22:16 -0500 ·
Turns out, <br> does not work, but <br/> does.  My reading suggests the
former is "non portable" while the latter will be, into the future, from an
HTML point of view.

So far, other parts seem unaffected.   Any parts I should attempt to test?

joe a.

On Fri, Jan 7, 2011 at 6:50 AM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
In <user-32f06596ece5@xymon.invalid<user-1e11e074460a@xymon.invalid>>
quoted from Joe Acquisto
Joe Acquisto <user-8a324efe5034@xymon.invalid> writes:
Is it possible to "escape" a status message, so as to make a status column
heading appear on two lines?
such as ~/bin/bb my_host "status 'uname -n'.MyColumn\nName green `date`
`cat
mytest`"

I don't think you can do that. If possible, it would involve writing the
column-name as HTML, i.e. with a "<br>" for the newline. But I wouldn't
be surprised if some parts of Xymon choked on those angle brackets as
part of a status-name.


Regards,
Henrik