Wow! You rock. Thanks a lot!
Thank you.
*Kris Springer* *=======================* * *
On Mon, Oct 14, 2013 at 6:05 PM, Jeremy Laidman <jlaidman at rebel-it.com.au>wrote:
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.icoThen 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