[olug] get web server host name

Luke -Jr luke at dashjr.org
Fri Apr 11 16:42:04 UTC 2008


On Thursday 10 April 2008, Mr Scsi wrote:
> What I have is a group of servers some at site 'A', some at site 'B' some
> at site 'C' with a weighted load balancer system, (IBM Edge, these are
> websphere boxes)
>
> The team that owns the applications running on them want a light diag
> script to get (most likely via lwp) wwwXX.domain.com XXX number of times,
> and count how many times each server responds.
> If the clusting is working correctly, multiple hits should bounce about the
> groups of servers. They want to count how many times site 'A' server 1
> responds and site 'A' server 2 responds, etc....

Why make a HTTP request at all? You could probably just call gethostbyname XXX 
number of times and count those. Unless you're doing the round-robin via NAT.



More information about the OLUG mailing list