Forum Discussion

Chris_101737's avatar
Chris_101737
Icon for Nimbostratus rankNimbostratus
Jun 17, 2010

Unable to monitor webserver with Siteminder,

Hi,

 

 

We tried to create http_monitor to monitor webservers with siteminder, we keep getting error 500 from the servers. I am not sure if there is something missing from your script.

 

 

Thanks

 

 

GET /unavailable_up.html HTTP/1.1\r\nHost: \r\nConnection: close\r\n

 

 

tried from ssh:

 

 

GET /unavailable_up.html

 

 

 

500 Internal Server Error

 

 

Internal Server Error

 

The server encountered an internal error or

 

misconfiguration and was unable to complete

 

your request.

 

 

Please contact the server administrator,

 

[no address given] and inform them of the time the error occurred,

 

and anything you might have done that may have

 

caused the error.

 

 

More information about this error may be available

 

in the server error log.

 

 

 

Connection closed by foreign host.

 

3 Replies

  • Which LTM version are you running? If you're on 9.3 - 10.1.0, can you try removing the trailing \r\n's:

     

     

    GET /unavailable_up.html HTTP/1.1\r\nHost: \r\nConnection: close

     

     

    And if that doesn't work, it's possible that the pool members require a valid host header value. If that's the case, can you hardcode the Host header value (replacing www.example.com with the actual Host the servers require):

     

     

    GET /unavailable_up.html HTTP/1.1\r\nHost: www.example.com\r\nConnection: close

     

     

    Aaron
  • Still did not work

     

     

    HTTP/1.1 400 Bad Request Date: Fri, 18 Jun 2010 20:23:13 GMT Server: Apache Content-Length: 226 Connection: close Content-Type: text/html; charset=iso-8859-1 400 Bad Request Bad Request Your browser sent a request that this server could not understand.

     

     

    I am using 9.4.4.

     

     

    Thanks

     

  • Hi Chris,

     

     

    Did you set a valid Host header value in the monitor send string? Can you post the headers from a valid browser request to the site? You can use a browser plugin like HttpFox for Firefox or Fiddler for IE to capture the headers.

     

     

    Thanks, Aaron