15 Oct
2013
15 Oct
'13
1:05 a.m.
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