Forum Discussion
Send and Receive String Explanation in a Http Monitor
Hello
1---
I see for a http monitor below is the Send String Configured but at Receive String field nothing is written/blank.
GET /index.html HTTP/1.1\r\nHost: host.domain.com\r\nConnection: Close\r\n\r\n
My query is what is meant by Recieve String is being blank ?
2---
Also what is the technical difference if I do not put Index.html after the / Path ?
GET /index.html HTTP/1.1\r\nHost: host.domain.com\r\nConnection: Close\r\n\r\n GET / HTTP/1.1\r\nHost: host.domain.com\r\nConnection: Close\r\n\r\n
- Dave_McCauley_3Cirrostratus
The receive string being blank means the big-ip won't look for any response. Basically as long as there's no TCP error, it should pass the check. Ideally you'd put something there such as "200 OK" or something that is in the page you're looking at.
If you don't put the index.html in the GET request, you're right, the pool member will probably respond with the index.html. Technically it will respond back with whatever the web server's configured default page is, such as in apache whatever the DirectoryIndex value is.
Health monitors will often work even though they're not configured properly, it's best to deliberately configure it rather than have it work and not know why. I'd recommend putting a file on the server and actually checking the content of the file. If it dynamically generates content such as pulling data from a database, a file that actually grabs something from the database would even be better!
I'm sure others will chime in with suggestions or other tips for health monitors.
HTH,
--D
- RicoCirrus
Subrun,
-
A blank receive string means that the HTTP monitor will mark its resource as UP if any response is received. A receive string is mainly used to parse the response and check that the proper resource is responding.
-
Changing the '/index.html' will change what resource that the request is looking for. A request with '/index.html' will attempt to return the contents of the 'index.html' file on the server the request was send to. If a GET request specified '/example.html' instead of '/index.html', it would attempt to return the contents of the 'example.html' file.
Here and here is some more documentation about HTTP monitors.
-
- Rico_368208Nimbostratus
Subrun,
-
A blank receive string means that the HTTP monitor will mark its resource as UP if any response is received. A receive string is mainly used to parse the response and check that the proper resource is responding.
-
Changing the '/index.html' will change what resource that the request is looking for. A request with '/index.html' will attempt to return the contents of the 'index.html' file on the server the request was send to. If a GET request specified '/example.html' instead of '/index.html', it would attempt to return the contents of the 'example.html' file.
Here and here is some more documentation about HTTP monitors.
-
Recent Discussions
Related Content
* 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