Squid checker

From Wikitech
Revision as of 08:36, 1 September 2010 by Nemo bis (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
#!/bin/bash
for center in pmtpa lopar knams yaseo
do
  echo "Checking $center squids:"
  for addr in `host rr.$center.wikimedia.org | cut -f 4 -d ' '`
  do
    echo -n "$addr "
    http_proxy=http://$addr:80 \
      wget --quiet -O /dev/null \
      http://en.wikipedia.org/robots.txt \
      && echo "ok" || echo "FAIL"
  done
done
Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox