Forum Discussion

Chris_G_01_1415's avatar
Chris_G_01_1415
Icon for Nimbostratus rankNimbostratus
Aug 07, 2014

Generic HTTP Monitor

So I have 12 servers that I want to monitor for a xml file with the word "Traffic." I would like to create one health monitor to attach to all 12 servers rather than create individual ones. When I do the following it works.

 

Send: GET /pub/tcd.xml HTTP/1.1\r\nHost: server1.domain.com \r\nConnection: Close\r\n\r\n\r\n Recieve: Traffic

 

I thought I could just leave the Host header blank GET /pub/tcd.xml HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n\r\n but that does not work. Anyone have any suggestions on why this is not working?

 

5 Replies

  • Seems like the webservers may be set up parse by the host header. I have some webservers that act this way, and I am forced to create and apply specific monitors to specific pool members. It's awkward. Maybe someone else knows a solution that will help us both!

     

  • I think in http 1.1 host field is necessary . your server wil return 400 bad request when you telnet to the pool member:port and GET /pub/tcd.xml

     

  • I had the feeling that the host field was needed. I can create 12 different monitors for each host but was hoping to find an easier way of doing this. Thanks everybody for your help.

     

  • If the servers aren't processing the host header, you might be able to get away with a dummy name in the host header. Just make it recognizeable, otherwise the server admins get all squirrelly when they check the logs and see requests for the wrong host over and over again :)