Hi Henrik,
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". When I'm using "apache=http://prdwatweb016:8090/sstatus" within Xymon configuration, I can see in prdwatweb016's Apache logs that Apache can't get access to /sstatus due to server configuration meaning that it doesn't have the specific header.
I can't modify the Apache's configuration due to our security policy but I can make a little script to get the stats on each server. The main problem is that I don't know how to send these stats to Xymon Server to be analyzed and graphed properly...
Maybe I'm not asking the correct question :) Please feel free to correct me or ask for more infos. Sincerly,
Thomas S
-----Message d'origine----- De : Henrik Størner [mailto:henrik at hswn.dk] Envoyé : lundi 28 mars 2011 17:47 À : SEGLARD, Thomas Cc : xymon at xymon.com Objet : Re: [Xymon] Changing Host Header
Den 28-03-2011 17:13, SEGLARD, Thomas skrev:
First of all, I'm using Xymon 4.2.3 J I want to get the Apache performance graphs but to achieve that I need to send a specific host header due to my Apache configuration. This command is working thanks to curl :
xymonServer:$ curl -H"Host: localhost" http://prdwatweb016:8090/sstatus
If I specify any other host, I couldn't get the Apache status. So my question is : how can I do that with Xymon ?
Use "apache=http://prdwatweb016:8090/sstatus" and make sure "prdwatweb016" resolves to the right IP. Worst case, add an entry to your Xymon servers' /etc/hosts file for it.
(With ordinary http checks, you could specify the IP to use as http://prdwatwab016=127.0.0.1:8090/sstatus but I'm not sure if that works for the "apache" test).
Regards, Henrik