Extended Content Verification (ECV) Content Check HTTP Health Monitor Receive String

Hello, I created an Extended Content Verification (ECV) Content Check Health Monitor to test server-specific content returned from a web server query (which I have never done before), but it’s currently not working and my servers are in an “Offline (Enabled)” state. If I set the “Receive String” to “200”, then the monitor works, but I would prefer to do a string match of some text returned with the response page..

Here is my HTTP Health Monitor and the receive string I would like to use:

Send String: GET /Mapping_WS2/ImageServer.asmx/ReturnImageServices?sImageServer=localhost HTTP/1.1\r\nHost: \r\nConnection: Close\r\n\r\n

Receive String: ImageService>USGS/DRG

Do I need a different type of health monitor or is the formatting wrong?

Have you tried supplying a (valid) value for the Host?

You also should experiment with “curl -v” from the command prompt (CLI in bash, not tmsh). This will show you what the server response is.

curl -v http://host.company.com/Mapping_WS2/ImageServer.asmx/ReturnImageServices?sImageServer=localhost

or

curl -v http://10.0.0.10/Mapping_WS2/ImageServer.asmx/ReturnImageServices?sImageServer=localhost

See the difference between using the hostname versus the IP address.

Thanks John. I have never used curl before, but I downloaded v7.35.0 for Win32. I ran your commands without error, but I’m not seeing any ouput in the command line. I haven’t been able to figure out where the output is going.

Okay, I was running curl.exe in a PowerShell prompt and no errors were returned. When I ran curl.exe in a Command Prompt I get a pop-up message that says “The program can’t start because libssh2.dll is missing from your computer”. Apparently the recommended source by the developer to get the file from doesn’t mention anything about extra files that are required. I found another source that looks like it includes these files and I will try installing that and updating this issue later.

You’ll want to run curl on the BIG-IP, as there are many factors that could cause a different response if you’re running it from your workstation. By the way, for running curl (and other Linux commands) on a Windows box I’d recommend Cygwin.

Okay, I ran your commands on BIG-IP and the result when connecting to the VS name and the IP is the same “roughly” (a lot of text is returned), but I just noticed that the string the developer wanted me to search for is slightly different on each back-end pool member, so we’ll need to find something consistent to check for. Right now I think that’s the issue so there’s probably nothing wrong with the health monitoring after all! I’ll update this issue if I find out anything else, but I think we’re okay now. Thanks