Forum Discussion

natewood70's avatar
natewood70
Icon for Nimbostratus rankNimbostratus
Jun 01, 2015

Help with HTTP Health Monitor

Hello F5 Community!

 

I'm having a tough time creating an HTTP health monitor to be used on some pool members on my device. I have adapted some of the things that work from existing health monitors in our environment, but after searching in the support community all day I haven't been able to figure this out. I've logged into the F5 and have run the following command:

 

curl -v --ntlm -u username:password

 

It runs the script as intended and has the following in the output (which is what I'm trying to capture for the health monitor):

 

IBM Cognos Software

 

All this being said... and showing it works using cURL I have created the following HTTP health monitor in the GUI:

 

Send String:

 

GET /ibmcognos/cgi-bin/cognosisapi.dll?b_action=xts.run&m=portal/welcome/welcome.xts HTTP/1.1\r\nHost: mynode\r\nConnection: Close\r\n\r\n\r\n

 

Receive String:

 

IBM Cognos Software

 

I'm sure it loos a little frankensteinish as this was pieced together based upon other health monitors that work and what I have seen using cURL. Can anyone advise on why the health check would be failing on these nodes? If you need more information, please let me know.

 

Thanks for the help!

 

2 Replies

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus

    Nate, have you seen sol2167 on askf5? This helps construct health monitors.

     

    Looking at your send string it seems u have too many CR/LF entries at the end. From the sol, when using ntlm the format should be:

     

    GET /index.html HTTP/1.1\r\nHost: host.domain.com

     

    I'm assuming you enter the username and password in the monitor too.

     

    Hope this helps,

     

    N

     

  • Hi Nathan,

     

    Thanks for pointing me in this direction, a lot of great information in that article and the others that I followed such as sol13821.

     

    I've made multiple adjustments on the monitor and I still can't get it to pass, I've run a tcpdump but I cant' decipher anything that would show the failure.

     

    Any other suggestions by chance? Thanks for the help, and your time.