Xymon Mailing List Archive search

Include an image on a page

2 messages in this thread

list Colin Coe · Wed, 14 Feb 2018 08:04:13 +0800 ·
Hi all

Apologies if this has been asked and answered previously but is it possible
to include a .png file at the end of a group (in the hosts.cfg file)?

Thanks

CC
list Jeremy Laidman · Mon, 5 Mar 2018 09:59:43 +1100 ·
Colin
quoted from Colin Coe

On 14 February 2018 at 11:04, Colin Coe <user-5b250cd7a540@xymon.invalid> wrote:
Apologies if this has been asked and answered previously but is it
possible to include a .png file at the end of a group (in the hosts.cfg
file)?
It's open source, so anything is possible! However, this isn't an
out-of-the-box feature.

One way to do this might be to update the footer file (stdnormal_footer) to
include some javascript that grabs the group name from page URL, and
creates an image tag matching the groupname. But you'd need to create an
image for every group, otherwise you'd get a broken image icon. With a bit
of extra javascripting, you could avoid trying to embed an image if it
doesn't exist, or to remove the image tag on error.

J