[Xymon] Include an image on a page

Jeremy Laidman jeremy at laidman.org
Sun Mar 4 23:59:43 CET 2018


Colin

On 14 February 2018 at 11:04, Colin Coe <colin.coe at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20180305/17375dde/attachment.html>


More information about the Xymon mailing list