Xymon Mailing List Archive search

favicon location?

list Kris Springer
Tue, 29 Oct 2013 21:50:03 -0700
Message-Id: <CAEmR0chmz3ffv2wRhqRs3YxU11S-K6h0eumnZibjN7CkK=user-353735c030c0@xymon.invalid>

Wow!  You rock.  Thanks a lot!

Thank you.
*Kris Springer*
*=======================*
• *


On Mon, Oct 14, 2013 at 6:05 PM, Jeremy Laidman <user-71895fb2e44c@xymon.invalid>wrote:
On 15 October 2013 05:49, Kris Springer <user-c2caa0a7a8d5@xymon.invalid>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