Forum Discussion

Vishal_96707's avatar
Vishal_96707
Icon for Nimbostratus rankNimbostratus
Jul 22, 2008

http return code monitor

Q. Is it possible to create monitor based on http return code? Can someone help me?

 

Q. I created 3 http monitors using the default template (get string and receive string), 2 of them worked fine without any issues however there is one which is giving problem. How do i troubleshoot what is going wrong?

 

Q. In the receive field can you use a sentence with space etc? or you just need to specify a single word?

 

 

Thanks in advance.

 

  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    Q. Is it possible to create monitor based on http return code? Can someone help me?

     

     

    Q. In the receive field can you use a sentence with space etc? or you just need to specify a single word? Yes, you can match on any string returned in the HTTP headers or data. Be sure to include more than just the numeric response code in your Receive string to avoid false positives. (ie. use "200 OK" instead of just "200" to avoid matching on the Date header included in all responses.)

     

     

    You can use spaces in the Receive string. In fact, it is recommended that you use more than a single word to avoid false positives. Click here for a recent Post of the Week video about Receive strings.

     

     

    Q. I created 3 http monitors using the default template (get string and receive string), 2 of them worked fine without any issues however there is one which is giving problem. How do i troubleshoot what is going wrong? Click here for an article about troubleshooting external monitors. You aren't using an external monitor, so most of the article doesn't apply, but the section "Debugging: Validating network I/O" has info about capturing and examining a trace of the actual conversation.

     

     

    hth

     

    /deb