Xymon Mailing List Archive search

Changing Host Header

list Henrik Størner
Wed, 30 Mar 2011 13:57:00 +0200
Message-Id: <92072cd2b019fc0cffb185302f0a1ef4@localhost>

On Tue, 29 Mar 2011 14:14:37 +0200, "SEGLARD, Thomas" <user-da8ce279e795@xymon.invalid>
wrote:
Thanks a lot for answer but none of your solutions work. Basically, I
have
30 webservers running Apache and the only way to have their "server
status"
statistics is putting a header "Host: localhost". 
The equivalent of your "curl" command
xymonServer:$ curl -H"Host: localhost" http://prdwatweb016:8090/sstatus
would be

   10.0.1.1 prdwatweb016 # apache=http://localhost=10.0.1.1:8090/sstatus

assuming your "prdwatweb016" server has IP 10.0.1.1.

But using "localhost" with a non-127.x.x.x IP just doesn't sound right :-)


Regards,
Henrik