Forum Discussion
BenConrad_10265
May 27, 2011Nimbostratus
Can a custom HTTP monitor work with a JSON response?
Hi,
My Devs have created a health check page on our Tst web servers that returns a JSON response.
HTTP/1.1 200 OK (application/json)
So, a couple of questions/comments:...
hooleylist
May 27, 2011Cirrostratus
Hi Ben,
You can send any TCP or HTTP request and check for any response with a TCP or HTTP monitor. But both need to be a single static string that's sent and a static string that's checked for in the response. You can use the steps in these two links to troubleshoot a failing monitor:
http://devcentral.f5.com/wiki/default.aspx/AdvDesignConfig/TroubleshootingLtmMonitors.html
http://support.f5.com/kb/en-us/solutions/public/12000/500/sol12531.html
tcpdump might be the simplest method to start troubleshooting this issue. You can use tcpdump to see the exact request bigd is sending and the response the pool member is sending.
If you want to look for a specific sequence of bytes in the response binary data, you can use ascii escape sequences (without the spaces between \ x and the two characters):
\ x 00 - null
\ x 01 - SOH
...
sol4186: Entering escape sequences in an ECV health monitor's send and receive strings
http://support.f5.com/kb/en-us/solutions/public/4000/100/sol4186.html
Aaron
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