Hi,
Sorry for the delay in communication from us. I have been running the
following script every 20 minutes since friday, in an attempt to find
out of sync cachers (my bad, it is ugly):
#!/bin/bash
md5=`wget -q -O- --header="Host: mirror.peer1.net"
http://seyval.peer1.net/debian/dists/sid/contrib/binary-i386/Packages.bz2 |
md5sum | awk '{print $1}'`
echo "origin: $md5"
echo;
for ip in $(cat ~/cdn_list)
do
echo $ip.cdn.peer1.net:
result=`wget -q -O- --timeout=5 --header="Host: mirror.peer1.net"
http://$ip/debian/dists/sid/Release | egrep "^Date:|^ .{32} .*
contrib/binary-i386/Packages.bz2"`
echo $result
chmd5=`echo $result | awk '{print $8}'`
echo "md5 = $md5"
echo "chmd5 = $chmd5"
if [[ "$md5" == "$chmd5" ]]
then
echo success
else
echo failure
echo -e "debian mirror: mirror.peer1.net - $ip out of sync! \n
the md5sum in 'Release' = ($md5) does not match
'contrib/binary-i386/Packages.bz2' = ($chmd5)" | mail -s "debian mirror:
mirror.peer1.net - $ip out of sync!" i...@peer1.com
logger -t mirror failure-event
fi
echo
done
If this is the wrong approach for detection, please feel free to send me
the correct modifications. Hopefully we can resolve this issue!
Thank you for your time you've already invested with the report and
troubleshooting. If anyone would like the full cdn list please email me,
as I would not like to post it here.
Thanks,
--
Nate Elkan
IT Administrator
PEER 1 Hosting | Ping & People
1000-555 West Hastings Street
Vancouver, BC, Canada V6B 4N5
T: 604.897.0044
F: 604.683.4634
nel...@peer1.com
http://www.peer1.com
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org