Forum Discussion
Dbow_21284
Nimbostratus
Aug 18, 2009Help with External HTTP Monitor (cURL) - Requires http authentication
Hello,
I am taking a variation of an external monitor used when NTLM auth is required and tweaking it for jsut regular http authentication. However, I am having an issue getting it to work en...
Dbow_21284
Nimbostratus
Aug 19, 2009Ok I realized permissions did fix the issue where my external monitor was not working in the GUI. THANKS! But I also realized I had a code issue that was giving a false positive in the CLI, so now I am running into another problem.
Here was the code issue! What was:
curl -L -v --user 'testuser:superpassword' http://${IP}:${PORT}/_layouts/ACCApplications/CommonLogin/login.aspx?ReturnUrl=%2fwhatsup.aspx -H "Host: members.acc.org" | grep -i "1-UP"
2>&1 > /dev/null
There was line break before the "2>&1 > /dev/null".
should have been:
curl -L -v --user 'testuser:superpassword' http://${IP}:${PORT}/_layouts/ACCApplications/CommonLogin/login.aspx?ReturnUrl=%2fwhatsup.aspx -H "Host: members.acc.org" | grep -i "1-UP" 2>&1 > /dev/null
I have a new issue though! It actually doesnt work (meaning doesnt see return string) but I think it has something to do with the way the site is redirecting you. Let me explain how it works from user perspective. When you put in something.mydomain.org/whatsup.aspx (which requires basic authentication) in your browser ... you are redirected to something.mydomain.org/_layouts/ACCApplications/CommonLogin/login.aspx?ReturnUrl=%2fwhatsup.aspx where the user puts in their credentials and then it goes back to something.mydomain.org/whatsup.aspx and the return string of "1-UP" shows up on the page.
Now, when I run my External monitor in the SSH CLI, I get a HTTP/1.1 200 OK, but I do not get the echo "UP" as it seems like it is testing for the return string before the redirection occurs ... or it doesnt happen or something. I am not 100% sure on that.
So question: do the developers need to change something in the site bhavior for this to work? Or is there additional logic I can add to my external monitor script to test once it is at the actual page something.mydomain.org/whatsup.aspx? Thanks!
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