change custom column icon
list Kris Springer
I've got a custom column that always shows green. I'd like to make that column show the 'info' icon instead. Ideas? Thank you. *Kris Springer*
list Jeremy Laidman
▸
On 23 May 2018 at 00:54, Kris Springer <user-c2caa0a7a8d5@xymon.invalid> wrote:
I've got a custom column that always shows green. I'd like to make that column show the 'info' icon instead. Ideas?
Sorry, but what's the "info" icon? On my system the info icon is the same green icon as any other column icons.
list John Thurston
▸
On 5/27/2018 3:28 PM, Jeremy Laidman wrote:
Sorry, but what's the "info" icon? On my system the info icon is the same green icon as any other column icons.
In xymonserver.cfg you should find:
INFOCOLUMN="foo" # Column where the info-pages are reported.
INFOCOLUMNGIF="bar" # Icon file used for the info-column
On my servers, foo==info and bar==folder.png
I forget what default values are. Maybe those are defaults.
I'm not aware of any way to change the icons for custom tests.
--
Do things because you should, not just because you can.
John Thurston XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska
list Paul Root
Green.gif is default
▸
-----Original Message-----
From: Xymon <xymon-bounces at xymon.com> On Behalf Of John Thurston
Sent: Tuesday, May 29, 2018 11:22 AM
To: xymon at xymon.com
Subject: Re: [Xymon] change custom column icon
On 5/27/2018 3:28 PM, Jeremy Laidman wrote:Sorry, but what's the "info" icon? On my system the info icon is the same green icon as any other column icons.
In xymonserver.cfg you should find:
INFOCOLUMN="foo" # Column where the info-pages are reported.
INFOCOLUMNGIF="bar" # Icon file used for the info-column
On my servers, foo==info and bar==folder.png
I forget what default values are. Maybe those are defaults.
I'm not aware of any way to change the icons for custom tests.
--
Do things because you should, not just because you can.
John Thurston XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
list Kris Springer
I have custom icons and themed my systems to make them a bit less
neon, more professional and easy on the eyes. I've attached a
screenshot. Hopefully the mailing list doesn't strip it off.
Here's what I have in my xymonserver.cfg
INFOCOLUMN="info"
INFOCOLUMNGIF="info.png"
TRENDSCOLUMN="graphs"
TRENDSCOLUMNGIF="trends-graphs.png"
CLIENTCOLUMN="clientlog"
CLIENTCOLUMNGIF="info.png"
I would like a few of my custom tests to have the same 'info.png' icon instead of the green/yellow/red icons. The tests always come in green, so I'm not concerned with any color changing or alerting on those particular tests. One of the tests is the 'who' column that BBwin and the XymonPSClient send in. I just want the 'info' icon to display instead of the green one. It sounds simple enough but I can't figure out how/if the system will allow me to define it.
I tried adding this to my xymonserver.cfg and restarting, but nothing happened. I suspect because WHOCOLUMN is not recognized by Xymongen.
WHOCOLUMN="who"
WHOCOLUMNGIF="info.png"
Here's what I have in my xymonserver.cfg
INFOCOLUMN="info"
INFOCOLUMNGIF="info.png"
TRENDSCOLUMN="graphs"
TRENDSCOLUMNGIF="trends-graphs.png"
CLIENTCOLUMN="clientlog"
CLIENTCOLUMNGIF="info.png"
I would like a few of my custom tests to have the same 'info.png' icon instead of the green/yellow/red icons. The tests always come in green, so I'm not concerned with any color changing or alerting on those particular tests. One of the tests is the 'who' column that BBwin and the XymonPSClient send in. I just want the 'info' icon to display instead of the green one. It sounds simple enough but I can't figure out how/if the system will allow me to define it.
I tried adding this to my xymonserver.cfg and restarting, but nothing happened. I suspect because WHOCOLUMN is not recognized by Xymongen.
WHOCOLUMN="who"
WHOCOLUMNGIF="info.png"
Thank you.
------------------------------------------------
Kris Springer
▸
On 05/29/2018 09:31 AM, Root, Paul T
wrote:
Green.gif is default -----Original Message----- From: Xymon On Behalf Of John Thurston Sent: Tuesday, May 29, 2018 11:22 AM To: xymon@xymon.com Subject: Re: [Xymon] change custom column icon On 5/27/2018 3:28 PM, Jeremy Laidman wrote:Sorry, but what's the "info" icon? On my system the info icon is the same green icon as any other column icons.In xymonserver.cfg you should find: INFOCOLUMN="foo" # Column where the info-pages are reported. INFOCOLUMNGIF="bar" # Icon file used for the info-column On my servers, foo==info and bar==folder.png I forget what default values are. Maybe those are defaults. I'm not aware of any way to change the icons for custom tests. -- Do things because you should, not just because you can. John Thurston XXX-XXX-XXXX user-ce4d79d99bab@xymon.invalid Department of Administration State of Alaska
Xymon@xymon.com This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments. Xymon@xymon.com
Attachments (1)
list Jeremy Laidman
▸
On 13 June 2018 at 08:29, Kris Springer <user-c2caa0a7a8d5@xymon.invalid> wrote:
I have custom icons and themed my systems to make them a bit less neon, more professional and easy on the eyes. I've attached a screenshot. Hopefully the mailing list doesn't strip it off.
It didn't. Looks very cool.
▸
<snip>
I would like a few of my custom tests to have the same 'info.png' icon instead of the green/yellow/red icons.
I did not know the Info column could have its icon changed. That's neat. In my installation (user-66fcdcdca248@xymon.invalid) it's just the standard green.gif.
▸
The tests always come in green, so I'm not concerned with any color changing or alerting on those particular tests. One of the tests is the 'who' column that BBwin and the XymonPSClient send in. I just want the 'info' icon to display instead of the green one. It sounds simple enough but I can't figure out how/if the system will allow me to define it.
Yep, makes sense.
▸
I tried adding this to my xymonserver.cfg and restarting, but nothing happened. I suspect because WHOCOLUMN is not recognized by Xymongen. WHOCOLUMN="who" WHOCOLUMNGIF="info.png"
You're correct. All of the "*COLUMN" and "*COLUMNGIF" strings are special, and you can't make up your own (without changing the source code). The simplest thing might be to tweak the display in the browser with a bit of Javascript, perhaps inserted into a template or footer file. Something like: <script src="http://code.jquery.com/jquery-latest.js"></script>; <script type="text/javascript"> jQuery("img").each( function(){ var self=jQuery(this); if ((self).attr("title").match(/^who:[a-z]+:/)) { var newsrc=(self).attr("src").replace("green.gif","info.gif"); (self).attr("src",newsrc); }; } ); </script> This looks for any "<img>" tag with the "title" attribute (pop-up text) "who:bla:bla" and substitutes green.gif with info.gif. To insert a bit of HTML or JavaScript into every page, add the text into a file called xymonbodyfooter.html in the same directory where xymonserver.cfg, and then set XYMONBODYFOOTER="file:$XYMONHOME/etc/xymonbodyfooter.html" into xymonserver.cfg. The location and name of the xymonbodyfooter.html is arbitrary. Cheers Jeremy
list Kris Springer
Tried it but the javascript doesn't affect anything.
Also you should use https on your javascript source line or the browser blocks it. ;-)
Also you should use https on your javascript source line or the browser blocks it. ;-)
Thank you.
------------------------------------------------
Kris Springer
▸
On 06/12/2018 04:13 PM, Jeremy Laidman
wrote:
On 13 June 2018 at 08:29, Kris Springer <user-c2caa0a7a8d5@xymon.invalid> wrote:
I have custom icons and themed my systems to make them a bit less neon, more professional and easy on the eyes. I've attached a screenshot. Hopefully the mailing list doesn't strip it off.
It didn't. Looks very cool.I would like a few of my custom tests to have the same 'info.png' icon instead of the green/yellow/red icons.
I did not know the Info column could have its icon changed. That's neat. In my installation (and at xymon.org) it's just the standard green.gif.
▸
The tests always come in green, so I'm not concerned with any color changing or alerting on those particular tests. One of the tests is the 'who' column that BBwin and the XymonPSClient send in. I just want the 'info' icon to display instead of the green one. It sounds simple enough but I can't figure out how/if the system will allow me to define it.
Yep, makes sense.
I tried adding this to my xymonserver.cfg and restarting, but nothing happened. I suspect because WHOCOLUMN is not recognized by Xymongen.
WHOCOLUMN="who"
WHOCOLUMNGIF="info.png"
You're correct. All of the "*COLUMN" and "*COLUMNGIF" strings are special, and you can't make up your own (without changing the source code).
The simplest thing might be to tweak the display in the browser with a bit of Javascript, perhaps inserted into a template or footer file. Something like:
This looks for any "" tag with the "title" attribute (pop-up text) "who:bla:bla" and substitutes green.gif with info.gif.
▸
To insert a bit of HTML or JavaScript into every page, add the text into a file called xymonbodyfooter.html in the same directory where xymonserver.cfg, and then set XYMONBODYFOOTER="file:$XYMONHOME/etc/xymonbodyfooter.html" into xymonserver.cfg. The location and name of the xymonbodyfooter.html is arbitrary.
CheersJeremy
list Frank Kannemann
Hi, Can you make your icons available to/for this list? Maybe on the on the xymonton site? Thanks, Frank https://wiki.xymonton.org/doku.php Sent from my generic iPad
attachment.png