Forum Discussion

Craig_Gibb_1781's avatar
Craig_Gibb_1781
Icon for Nimbostratus rankNimbostratus
Oct 19, 2014

Custom http monitor and http error 500

Hi i am trying to fix a custom monitor that is for a load balanced https offloaded webservice , the service has a status api request that is called using /cpqserver/api/status using http. That then returns the following information:-

 

1.5.0.51 Active True localhost net.tcp://localhost:5000/Tribold/PPM/Internal/CpqDataService 5000 False 2014-10-19T17:30:10 True True

 

The problem is i would like to use one monitor and cant seem to get a command syntax that works, for both nodes. The following http request works for one node but i would like to able to have a command that works oavsett node.

 

GET /cpqserver/api/status/ HTTP/1.1\r\nHost: hostname.domain.com\r\nConnection: Close\r\n\r\n

 

IS there away to do this without putting in the nhost ?

 

/Regards Craig

 

1 Reply

  • You can certainly do that without specifying the HTTP "Host" parameter. However, by doing that, the health-check sent by F5 might be served by a different vHost in end-server. To put it short, it depends on vHost config in end-servers and how the listeners are configured.

    You can emulate the health-check from F5 with cURL or WGET. This should give you a hint whether you can get this health-check working without touching the vHost configs in end-servers.

    Test with Host header specified:

    curl -vH "Host:www.mydomain.com" http://end-server-ip:port/cpqserver/api/status

    Test without Host header:

    curl -v http://end-server-ip:port/cpqserver/api/status