Forum Discussion
Kiran_Kumar
Feb 03, 2014Nimbostratus
monitor to turn off pool member if http response is 501 or 502 0r 503
Hi Friends,
Following is the path to be used in GET field "/monitoring/health.svc"
The monitor is expected to turn server offline only when http response code is 501/502/503.
Please help me conf...
nitass_89166
Feb 04, 2014Noctilucent
can you try this?
^HTTP/1.[10]\s50[1-3]
- JGFeb 04, 2014CumulonimbusShouldn't the the dot be escaped?
- nitass_89166Feb 04, 2014Noctilucentoops, thanks Jie. :)
- Kiran_KumarFeb 04, 2014NimbostratusHi Jie and Nitass, So to give you more details: when I do a curl from F5, I see http 200 code. But my monitor gets a http 500 code. Is there anything that i should add to the send string. Please advise? below are the details [admin@LTM1:Active] ~ curl -v http://10.10.53.41/Health/Monitoring.svc * About to connect() to 10.10.53.41 port 80 * Trying 10.10.53.41... connected * Connected to 10.10.53.41 (10.10.53.41) port 80 > GET /Health/Monitoring.svc HTTP/1.1 > User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 > Host: 10.10.53.41 > Accept: */* > < HTTP/1.1 200 OK < Content-Length: 2836 < Content-Type: text/html; charset=UTF-8 < Server: Microsoft-IIS/7.5 < X-Powered-By: ASP.NET < Date: Thu, 06 Feb 2014 17:46:50 GMT Monitor send string which gets response of http 500 send "GET /Health/Monitoring.svc HTTP/1.1\r\nHost: \r\nConnection: close\r\n\r\n" please let me know if i need to make any changes in the above send string to get http 200 coz I get http 200 using curl
- Kiran_KumarFeb 06, 2014NimbostratusHi Jie and Nitass, So to give you more details: when I do a curl from F5, I see http 200 code. But my monitor gets a http 500 code. Is there anything that i should add to the send string. Please advise? below are the details [admin@LTM1:Active] ~ curl -v http://10.10.53.41/Health/Monitoring.svc * About to connect() to 10.10.53.41 port 80 * Trying 10.10.53.41... connected * Connected to 10.10.53.41 (10.10.53.41) port 80 > GET /Health/Monitoring.svc HTTP/1.1 > User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 > Host: 10.10.53.41 > Accept: */* > < HTTP/1.1 200 OK < Content-Length: 2836 < Content-Type: text/html; charset=UTF-8 < Server: Microsoft-IIS/7.5 < X-Powered-By: ASP.NET < Date: Thu, 06 Feb 2014 17:46:50 GMT Monitor send string which gets response of http 500 send "GET /Health/Monitoring.svc HTTP/1.1\r\nHost: \r\nConnection: close\r\n\r\n" please let me know if i need to make any changes in the above send string to get http 200 coz I get http 200 using curl
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects