Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

HTTP monitor with Status code.

Hi,
I want to create a HTTP monitor based on http status return code. What should I mention in the HTTP receive string, if I use “HTTP/1.0 200 OK” will it work. Also should I implement it on pool or on nodes?

Thanks & Regards,
AJ
0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
It really depends on your requirements. If using the http monitor, you can send a query to special page that will give you a "we're good" message that tests more than just the root index, or if that's sufficient, you can implement an http monitor that pretty much just tells you the app is responding, not that it's good. You can also do the negative, where it marks the node/pool member down if the string is received.
0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
If you are monitoring the pool members I don't see much benefit in monitoring the nodes separately. If it's down in the pool its status as a node doesn't really make any difference, and you're just duplicating health checks and causing more load on the node if you do that.

Denny
0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Hi Denny,
I agree with you but i want to monitor pool members only using HTTP monitor. I want to know if I check with "200 OK" in receive string for HTTP get/, can it check if the HTTP service is up or not in the members of the pool.

Thanks & Regards,
Arijit <img src=/DesktopModules/NTForums/themes/DC4/emoticons/smile.gif>
0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
Assuming the pool member responds to the send string with an HTTP 200 status, using a receive string of "200 OK" should work fine:


# curl -I www.yahoo.com

HTTP/1.1 200 OK
Date: Tue, 20 Jan 2009 15:14:39 GMT
P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
Cache-Control: private
Vary: User-Agent
X-XRDS-Location: http://open.login.yahooapis.com/openid20/www.yahoo.com/xrds
Last-Modified: Tue, 20 Jan 2009 15:02:20 GMT
Accept-Ranges: bytes
Content-Length: 9562
Connection: close
Content-Type: text/html; charset=utf-8


Aaron
0