[Xymon] Changing Host Header

henrik at hswn.dk henrik at hswn.dk
Wed Mar 30 13:57:00 CEST 2011


On Tue, 29 Mar 2011 14:14:37 +0200, "SEGLARD, Thomas" <tseglard at wat.tv>
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




More information about the Xymon mailing list