how to "escape" a column name
list Joe Acquisto
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
This seems to work on hobbit 4.20. ~/bin/bb my_host "status 'uname -n'.MyColumn<br/>Name green `date` `cat mytest`" joe a
▸
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
▸
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
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>>
▸
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``catmytest`"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