Hi,
i don't know if this is the right place for mij question , sorry if it doesn't .
We have a oracle webserver wich uses a single sign on server for authentication on another server with another url.
What i want is get a xxx.jpg from a url "https://someserver.domain.nl/somedir/xxx.jpg.
mij troble is that this url asks a username/password to authenticate on the sso server, and here a get tock.
Any idea how to solve this?
check_http -H server.domail.nl --ssl --url=https:/docroot/dir/xxx.jpg -f follow -a username:passwd
Thanks in advance
Christian
check_http with oracle SSO "single sign on"
Re: check_http with oracle SSO "single sign on"
Can you run the actual command that you are using in the command line and the output? (Hide the sensitive data).
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_http with oracle SSO "single sign on"
Hi,
Thanks for the quick reply.
Here is the check i'm trying to get working to monitor some oracle web applicatin servers.
I've put some square brackets around the url's.
nagiosxi:root:/usr/local/nagios/libexec> ./check_http -H server.domain.nl -v -ssl --url=[https://someting.domain.nl/thumbnails/n ... 310002.jpg] -f follow -a user:passwd
option f:4
GET [https://someting.domain.nl/thumbnails/n ... 310002.jpg] HTTP/1.0
User-Agent: check_http/v2053 (nagios-plugins 1.4.13)
Connection: close
Host: server.domain.nl
Authorization: Basic YWtvbWg6dml0ZXNzZTE=
[http://server.domain.nl:80https://someting.domain.nl/thumbnails/nagios_check/9789003310002.jpg] is 566 characters
STATUS: HTTP/1.1 302 Found
**** HEADER ****
Date: Fri, 23 Mar 2012 07:39:19 GMT
Server: Oracle-Application-Server-11g
Location: [https://someting.domain.nl//thumbnails/ ... 310002.jpg]
Content-Length: 291
Connection: close
Content-Type: text/html; charset=iso-8859-1
**** CONTENT ****
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The requested resource has been temporarily moved <a href="https://someting.domain.nl//thumbnails/ ... re</a>.</p>
</body></html>
Redirection to [https://someting.domain.nl:443/thumbnai ... 310002.jpg]
GET /thumbnails/nagios_check/9789003310002.jpg HTTP/1.0
User-Agent: check_http/v2053 (nagios-plugins 1.4.13)
Connection: close
Host: some.domain.nl
Authorization: Basic YWtvbWg6dml0ZXNzZTE=
[https://someting.domain.nl:443/thumbnai ... 310002.jpg] is 1812 characters
STATUS: HTTP/1.1 302 Redirect to Oracle SSO Server for login
**** HEADER ****
Date: Fri, 23 Mar 2012 07:39:19 GMT
Server: Oracle-Application-Server-11g
Location: [https://ssoserver.domain.nl/pls/orasso/ ... n.ls_login?]Site2pstoreToken=v3.0~0F5768EF~9CEE13B0BDD5FA748C0D46D8EE04BA71~6E90DD31C74F34FFA5760720CBDFED0D3ABC77486BC41A45FB3E330A49175D7A7C010F4C3E4DCBFBC2D49735C2C04065340879732E08C29A892B0F96B2DA566938552B289A06E27013E718CD73BA055343A4FF7E75CEEF37E83062086F7E17754C7C697288476F342788BF45DE5ADC56DB4047CA52601544E8839FF743DFC63E1DE64326AC75702B7D03340446FFC06E65EB0B0920D09F0737547179CD36EFA1820CBD7E455E807AF454243DD2462248316A2D5C2C64AC18684BFA0A371CD6F042A719EB3E19E2C62278D7DD8C20003F76B38AABEAEF848CBE82651DC3D04EF5C91ABC19AC0266E53EC09BB0CBD420CBA48689C2AA965C441E0BD8C513A0E864
Content-Length: 931
Connection: close
Content-Type: text/html; charset=iso-8859-1
**** CONTENT ****
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Redirect to Oracle SSO Server for login</title>
</head><body>
<h1>Redirect to Oracle SSO Server for login</h1>
<p>The requested resource has been temporarily moved <a href="https://ssoserver.domain.nl/pls/orasso/ ... re</a>.</p>
</body></html>
Redirection to https://ssoserver.domain.nl:443/pls/ora ... C513A0E864
GET /pls/orasso/orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v3.0~0F5768EF~9CEE13B0BDD5FA748C0D46D8EE04BA71~6E90DD31C74F34FFA5760720CBDFED0D3ABC77486BC41A45FB3E330A49175D7A7C010F4C3E4DCBFBC2D49735C2C04065340879732E08C29A892B0F96B2DA566938552B289A06E27013E718CD73BA055343A4FF7E75CEEF37E83062086F7E17754C7C697288476F342788BF45DE5ADC56DB4047CA52601544E8839FF743DFC63E1DE64326AC75702B7D03340446FFC06E65EB0B0920D09F0737547179CD36EFA1820CBD7E455E807AF454243DD2462248316A2D5C2C64AC18684BFA0A371CD6F042A719EB3E19E2C62278D7DD8C20003F76B38AABEAEF848CBE82651DC3D04EF5C91ABC19AC0266E53EC09BB0CBD420CBA48689C2AA965C441E0BD8C513A0E864 HTTP/1.0
User-Agent: check_http/v2053 (nagios-plugins 1.4.13)
Connection: close
Host: ssoserver.domain.nl
Authorization: Basic YWtvbWg6dml0ZXNzZTE=
HTTP CRITICAL - No data received from host
Regards,
Christian
Thanks for the quick reply.
Here is the check i'm trying to get working to monitor some oracle web applicatin servers.
I've put some square brackets around the url's.
nagiosxi:root:/usr/local/nagios/libexec> ./check_http -H server.domain.nl -v -ssl --url=[https://someting.domain.nl/thumbnails/n ... 310002.jpg] -f follow -a user:passwd
option f:4
GET [https://someting.domain.nl/thumbnails/n ... 310002.jpg] HTTP/1.0
User-Agent: check_http/v2053 (nagios-plugins 1.4.13)
Connection: close
Host: server.domain.nl
Authorization: Basic YWtvbWg6dml0ZXNzZTE=
[http://server.domain.nl:80https://someting.domain.nl/thumbnails/nagios_check/9789003310002.jpg] is 566 characters
STATUS: HTTP/1.1 302 Found
**** HEADER ****
Date: Fri, 23 Mar 2012 07:39:19 GMT
Server: Oracle-Application-Server-11g
Location: [https://someting.domain.nl//thumbnails/ ... 310002.jpg]
Content-Length: 291
Connection: close
Content-Type: text/html; charset=iso-8859-1
**** CONTENT ****
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The requested resource has been temporarily moved <a href="https://someting.domain.nl//thumbnails/ ... re</a>.</p>
</body></html>
Redirection to [https://someting.domain.nl:443/thumbnai ... 310002.jpg]
GET /thumbnails/nagios_check/9789003310002.jpg HTTP/1.0
User-Agent: check_http/v2053 (nagios-plugins 1.4.13)
Connection: close
Host: some.domain.nl
Authorization: Basic YWtvbWg6dml0ZXNzZTE=
[https://someting.domain.nl:443/thumbnai ... 310002.jpg] is 1812 characters
STATUS: HTTP/1.1 302 Redirect to Oracle SSO Server for login
**** HEADER ****
Date: Fri, 23 Mar 2012 07:39:19 GMT
Server: Oracle-Application-Server-11g
Location: [https://ssoserver.domain.nl/pls/orasso/ ... n.ls_login?]Site2pstoreToken=v3.0~0F5768EF~9CEE13B0BDD5FA748C0D46D8EE04BA71~6E90DD31C74F34FFA5760720CBDFED0D3ABC77486BC41A45FB3E330A49175D7A7C010F4C3E4DCBFBC2D49735C2C04065340879732E08C29A892B0F96B2DA566938552B289A06E27013E718CD73BA055343A4FF7E75CEEF37E83062086F7E17754C7C697288476F342788BF45DE5ADC56DB4047CA52601544E8839FF743DFC63E1DE64326AC75702B7D03340446FFC06E65EB0B0920D09F0737547179CD36EFA1820CBD7E455E807AF454243DD2462248316A2D5C2C64AC18684BFA0A371CD6F042A719EB3E19E2C62278D7DD8C20003F76B38AABEAEF848CBE82651DC3D04EF5C91ABC19AC0266E53EC09BB0CBD420CBA48689C2AA965C441E0BD8C513A0E864
Content-Length: 931
Connection: close
Content-Type: text/html; charset=iso-8859-1
**** CONTENT ****
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Redirect to Oracle SSO Server for login</title>
</head><body>
<h1>Redirect to Oracle SSO Server for login</h1>
<p>The requested resource has been temporarily moved <a href="https://ssoserver.domain.nl/pls/orasso/ ... re</a>.</p>
</body></html>
Redirection to https://ssoserver.domain.nl:443/pls/ora ... C513A0E864
GET /pls/orasso/orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v3.0~0F5768EF~9CEE13B0BDD5FA748C0D46D8EE04BA71~6E90DD31C74F34FFA5760720CBDFED0D3ABC77486BC41A45FB3E330A49175D7A7C010F4C3E4DCBFBC2D49735C2C04065340879732E08C29A892B0F96B2DA566938552B289A06E27013E718CD73BA055343A4FF7E75CEEF37E83062086F7E17754C7C697288476F342788BF45DE5ADC56DB4047CA52601544E8839FF743DFC63E1DE64326AC75702B7D03340446FFC06E65EB0B0920D09F0737547179CD36EFA1820CBD7E455E807AF454243DD2462248316A2D5C2C64AC18684BFA0A371CD6F042A719EB3E19E2C62278D7DD8C20003F76B38AABEAEF848CBE82651DC3D04EF5C91ABC19AC0266E53EC09BB0CBD420CBA48689C2AA965C441E0BD8C513A0E864 HTTP/1.0
User-Agent: check_http/v2053 (nagios-plugins 1.4.13)
Connection: close
Host: ssoserver.domain.nl
Authorization: Basic YWtvbWg6dml0ZXNzZTE=
HTTP CRITICAL - No data received from host
Regards,
Christian
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check_http with oracle SSO "single sign on"
You may need to look into using webinject with our web transaction wizard to be able to specify a user/pass for a redirected page. Even then, I'm not positive it is possible...