<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 13 June 2018 at 08:29, Kris Springer <span dir="ltr"><<a href="mailto:kspringer@innovateteam.com" target="_blank">kspringer@innovateteam.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    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.<br></div></blockquote><div><br></div><div>It didn't. Looks very cool.</div><div><br></div><div><snip></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">I would like a few of my custom tests to have the same 'info.png'
    icon instead of the green/yellow/red icons.</div></blockquote><div><br></div><div>I did not know the Info column could have its icon changed. That's neat. In my installation (and at <a href="http://xymon.org">xymon.org</a>) it's just the standard green.gif.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">  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.<br></div></blockquote><div><br></div><div>Yep, makes sense.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">I tried adding this to my xymonserver.cfg and restarting, but
    nothing happened.  I suspect because WHOCOLUMN is not recognized by
    Xymongen.<br>
    WHOCOLUMN="who"               <br>
    WHOCOLUMNGIF="info.png"</div></blockquote><div><br></div><div>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).</div><div><br></div><div>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:</div><div><br></div><div><div><script src="<a href="http://code.jquery.com/jquery-latest.js">http://code.jquery.com/jquery-latest.js</a>"></script></div><div><script type="text/javascript"></div><div>        jQuery("img").each(</div><div>                function(){</div><div>                        var self=jQuery(this);</div><div>                        if ((self).attr("title").match(/^who:[a-z]+:/)) {</div><div>                                var newsrc=(self).attr("src").replace("green.gif","info.gif");</div><div>                                (self).attr("src",newsrc);</div><div>                        };</div><div>                }</div><div>        );</div><div></script></div></div><div><br></div><div>This looks for any "<img>" tag with the "title" attribute (pop-up text) "who:bla:bla" and substitutes green.gif with info.gif.</div><div><br></div><div>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.</div><div><br></div><div>Cheers</div><div>Jeremy</div><div><br></div></div></div></div>