Hi,

We would like to be able to use wget as part of a monitoring script to have
it watch a bunch of clustered web servers, however, we'd like to ingore the
results from libresolv, so we can target wget at a specific ip address, but
we need to fool the web server into returning the proper results for the
host header name.

i.e.

wget --serverip=192.168.0.10 http://www.blah.com/restofurl >server1
wget --serverip=192.168.0.11 http://www.blah.com/restofurl >server2
wget --serverip=192.168.0.12 http://www.blah.com/restofurl >server3
wget --serverip=192.168.0.13 http://www.blah.com/restofurl >server4

Then we'll do diff server1 server1.normal to check for errors, and so on.


Since these servers are part of a cluster, we can't rely on DNS, and have to
hack something that rotates the entry in /etc/hosts.  Unfortunately we can't
just do wget http://192.168.0.10/restofurl ... http://192.168.0.13/restofurl
because the web servers expect the full host header names since they handle
multiple sites.

Any chance of adding this in a future version?

Thanks much.

Reply via email to