[Xymon] Modifying Page Titles

Japheth Cleaver cleaver at terabithia.org
Wed Nov 18 21:49:44 CET 2015


On 11/18/2015 7:25 AM, Foster Patch wrote:
>
> Hello,
>
> I’m not sure how to go about overriding specific title pages. I am 
> referring to the browser title at the top that is usually in the 
> format: “green: Xymon – Status …”. I would like that to continue 
> displaying the icon to display its status, but want to change the name 
> to “Web Servers”. Is there any way to do this? I was looking into the 
> options for hosts.cfg and xymongen, but after testing, have been 
> unable to make any changes to it.
>
>

Hi Foster,

If it's for a static page you've created (eg, "page webservers Web 
Servers" in hosts.cfg), the template for this is located in the web 
directory as "stdnormal_header". A little-known feature that probably 
needs to be documented better in 
https://www.xymon.com/help/manpages/man5/xymonweb.5.html is that all 
sub-pages can have overrides for templates specific to them, and 
sub-parent overrides are walked back hierarchically.  So the page 
$XYMONROOT/test/apple/banana/cherry/ will have its header from the first 
file xymongen finds in:
3926 2015-11-18 11:51:29.811710 Trying header/footer file 
'/usr/share/xymon/web/test_apple_banana_cherry_header'
3926 2015-11-18 11:51:29.811718 Trying header/footer file 
'/usr/share/xymon/web/test_apple_banana_header'
3926 2015-11-18 11:51:29.811723 Trying header/footer file 
'/usr/share/xymon/web/test_apple_header'
3926 2015-11-18 11:51:29.811728 Trying header/footer file 
'/usr/share/xymon/web/test_header'
3926 2015-11-18 11:51:29.811733 Trying header/footer file 
'/usr/share/xymon/web/stdnormal_header'

Just copy the existing template file to the new name, then edit the 
TITLE tag to however you'd like it to be set up.

HTH,
-jc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20151118/f88ae01b/attachment.html>


More information about the Xymon mailing list