Forum Discussion
Ricardo_77091
Nimbostratus
Mar 26, 2009HTTP Monitor that follows redirects
We are trying to configure an HTTP monitor to monitor a .NET application and mark the member as down if it does not receive the response it expects. The problem is that the first response is a 401 Una...
Dbow_21284
Nimbostratus
Jul 13, 2009I am trying to achieve the same thing. Its not owrking for me though.
Question: How do you step through it in SSH to see what the issue might be? However, when I copy your command and substitute for the variables and minus the GREP piece, like so:
curl -L --ntlm -k -v --user 'username@acc.org:password' http://10.10.185.39/whatsup.aspx -H "Host: intranet.acc.org" I get the following, which seems fine as I am searching for the string of "1-UP"
-H "Host: intranet.acc.org"
* About to connect() to 10.10.185.39 port 80
* Trying 10.10.185.39... connected
* Connected to 10.10.185.39 (10.10.185.39) port 80
* Server auth using NTLM with user 'ddenbow@acc.org'
> GET /whatsup.aspx HTTP/1.1
> Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=
> User-Agent: curl/7.15.3 (i686-redhat-linux-gnu) libcurl/7.15.3 OpenSSL/0.9.7l zlib/1.1.4
> Accept: */*
> Host: intranet.acc.org
>
< HTTP/1.1 401 Unauthorized
< Content-Length: 1539
< Content-Type: text/html
< Server: Microsoft-IIS/6.0
< WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAAAAADgAAAACAgACUvatNVQ+0zgAAAAAAAAAAAAAAAA4AAAABQLODgAAAA8=
< MicrosoftSharePointTeamServices: 12.0.0.6305
< X-Powered-By: ASP.NET
< Date: Mon, 13 Jul 2009 17:57:21 GMT
* Ignoring the response-body
* Connection 0 to host 10.10.185.39 left intact
* Issue another request to this URL: 'http://10.10.185.39/whatsup.aspx'
* Re-using existing connection! (0) with host 10.10.185.39
* Connected to 10.10.185.39 (10.10.185.39) port 80
* Server auth using NTLM with user 'ddenbow@acc.org'
> GET /whatsup.aspx HTTP/1.1
> Authorization: NTLM TlRMTVNTUAADAAAAGAAYAE8AAAAYABgAZwAAAAAAAABAAAAADwAPAEAAAAAAAAAATwAAAAAAAAB/AAAAAYIAAGRkZW5 ib3dAYWNjLm9yZ9zh9zUiNOiixpBBtqKedUUnFyVAwbdzmDYHNgtUai73o49khXr1DcIOjw5Dwj4kXg==
> User-Agent: curl/7.15.3 (i686-redhat-linux-gnu) libcurl/7.15.3 OpenSSL/0.9.7l zlib/1.1.4
> Accept: */*
> Host: intranet.acc.org
>
< HTTP/1.1 200 OK
< Date: Mon, 13 Jul 2009 17:57:21 GMT
< Server: Microsoft-IIS/6.0
< MicrosoftSharePointTeamServices: 12.0.0.6305
< X-Powered-By: ASP.NET
< X-AspNet-Version: 2.0.50727
< Set-Cookie: WSS_KeepSessionAuthenticated=80; path=/
< Cache-Control: private, max-age=0
< Expires: Sun, 28 Jun 2009 17:57:21 GMT
< Last-Modified: Mon, 13 Jul 2009 17:57:21 GMT
< Content-Type: text/html; charset=utf-8
< Content-Length: 597
< meta name="Microsoft Theme" content="acc 1011, default" /> <br>
> name="form1" method="post" action="whatsup.aspx" id="form1">
1-UP
Connection 0 to host 10.10.185.39 left intact
So it should work right? But for some reason when I copy the monitor over and use it on my pool ... its down. I tried substituting both IPs for my 2 pool members in the command line and both get the same as above.
Am I missing something? I dont need to declare any variables or explicit arguments in my external monitor right?
Thanks
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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