[Xymon] favicon location?
Jeremy Laidman
jlaidman at rebel-it.com.au
Tue Oct 15 03:05:34 CEST 2013
On 15 October 2013 05:49, Kris Springer <kspringer at innovateteam.com> wrote:
> Yes, I'd love to but I don't know how to write that code. Do you?
Something like this in the file $XYMONHOME/ext/favicon.sh:
#!/bin/sh
# generate favicon symlink
FAV=`sed -n '/shortcut icon/{s/^.*\///;s/".*$//;p}'
$XYMONWWWDIR/nongreen.html`
[ -f "$XYMONWWWDIR/gifs/$FAV" ] && ln -f -s gifs/$FAV
$XYMONWWWDIR/favicon.ico
Then do "chmod +x $XYMONHOME/ext/favicon.sh". And finally add this to
tasks.cfg:
[favicon]
ENVFILE $XYMONHOME/etc/xymonserver.cfg
CMD $XYMONHOME/ext/favicon.sh
LOGFILE $XYMONSERVERLOGS/favicon.log
INTERVAL 1m
Adjust the interval to your needs. Check the xymonlaunch.log and
favicon.log for any errors.
J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20131015/0c46e565/attachment.html>
More information about the Xymon
mailing list