Forum Discussion

BrianG_11931's avatar
BrianG_11931
Icon for Nimbostratus rankNimbostratus
Apr 02, 2014

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?

 

6 Replies

  • Arie's avatar
    Arie
    Icon for Altostratus rankAltostratus

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

     

  • John_Alam_45640's avatar
    John_Alam_45640
    Historic F5 Account

    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.

    • BrianG_11931's avatar
      BrianG_11931
      Icon for Nimbostratus rankNimbostratus
      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.
    • BrianG_11931's avatar
      BrianG_11931
      Icon for Nimbostratus rankNimbostratus
      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.
    • Arie's avatar
      Arie
      Icon for Altostratus rankAltostratus
      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.