<br><div class="gmail_quote"><br>Folks,<br>How do I get check_http to input username/password for a particular url?<br><br>This is what I am doing:<br><br># /opt/nagios/libexec/check_http -ssl -a myusername:mypassword -H myhostname.fqdn -u /websitemanager/ControllerServlet -f follow -v<br clear="all">

<br>There is a redirection that happens and hence the -f follow switch/option, after which it gets to a login page - <a href="https://myhostname.fqdn/security/LoginFrameset.jsp" target="_blank">https://myhostname.fqdn/security/LoginFrameset.jsp</a> this is where it needs to input the username/password, but I don't think it goes past this, and I get a 'string not found' error.<br>

<br>Here is the complete message (edited):<br>#-----------------------------------------------------------------#<br><font style="color: rgb(255, 0, 0);" size="1">GET /websitemanager/ControllerServlet HTTP/1.0<br>User-Agent: check_http/v1861 (nagios-plugins 1.4.11)<br>

Connection: close<br>Host: myhostname.fqdn<br>Authorization: Basic Y2JsdC1pdDowbjN3QHl0MWNrM3Q=<br><br><br><a href="http://myhostname.fqdn:80/websitemanager/ControllerServlet" target="_blank">http://myhostname.fqdn:80/websitemanager/ControllerServlet</a> is 1602 characters<br>

STATUS: HTTP/1.1 302 Moved Temporarily<br>**** HEADER ****<br>Date: Wed, 02 Apr 2008 22:37:58 GMT<br>Server: Apache/2.0.52 (Red Hat) DAV/2<br>Set-Cookie: Apache=209.67.79.1.1207175878098830; path=/; expires=Fri, 02-Apr-10 22:37:58 GMT<br>

Location: <a href="https://myhostname.fqdn/security/LoginFrameset.jsp" target="_blank">https://myhostname.fqdn/security/LoginFrameset.jsp</a><br>Set-Cookie: JSESSIONID=H0KG5KjlQH0yr7XzJWDnMhkKQRKJmLmTDvG9QQ572nX6TXTKShn3!-1692630720; path=/<br>

Set-Cookie: BIGipServercert-1-nitracluster.dealer=1046154250.13601.0000; path=/<br>Connection: close<br>Content-Type: text/html<br>Set-Cookie: BIGipServercert-1-staticweb=878382090.20480.0000; path=/<br>**** CONTENT ****<br>

<html><head><title>302 Moved Temporarily</title></head><br><body bgcolor="#FFFFFF"><br><p>This document you requested has moved temporarily.</p><br><p>It's now at <a href="<a href="https://myhostname.fqdn/security/LoginFrameset.jsp" target="_blank">https://myhostname.fqdn/security/LoginFrameset.jsp</a>"><a href="https://myhostname.fqdn/security/LoginFrameset.jsp" target="_blank">https://myhostname.fqdn/security/LoginFrameset.jsp</a></a>.</p><br>

</body></html><br><br><br><html><br><head><br><title>Welcome!</title><br><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><br><br><script language="JavaScript"><br>

<!--<br>function topLoader() {<br>        if (window != top) {<br>        top.location.href = window.location.href;<br>        }<br>}<br>//--><br></script><br></head><br><br><br><br><frameset rows="66,1*,40" frameborder="NO" border="0" framespacing="0" onload="topLoader()"><br>

  <frame noresize src="/security/LoginHeader.jsp" name="header" scrolling="NO"><br>  <frame noresize src="/security/Login.jsp"  name="content" scrolling="AUTO"><br>

  <frame noresize src="/security/footer.jsp"  name="footer" scrolling="NO"><br></frameset><br><br><br><noframes><br><body bgcolor="#FFFFFF"><br><br><br><br>
<br>
</body><br></noframes><br></html><br><br>Redirection to <a href="https://myhostname.fqdn:443/security/LoginFrameset.jsp" target="_blank">https://myhostname.fqdn:443/security/LoginFrameset.jsp</a><br>GET /security/LoginFrameset.jsp HTTP/1.0<br>

User-Agent: check_http/v1861 (nagios-plugins 1.4.11)<br>Connection: close<br>Host: myhostname.fqdn<br>Authorization: Basic Y2JsdC1pdDowbjN3QHl0MWNrM3Q=<br><br><br><a href="https://myhostname.fqdn:443/security/LoginFrameset.jsp" target="_blank">https://myhostname.fqdn:443/security/LoginFrameset.jsp</a> is 1319 characters<br>

STATUS: HTTP/1.1 200 OK<br>**** HEADER ****<br>Date: Wed, 02 Apr 2008 22:37:58 GMT<br>Server: Apache/2.0.52 (Red Hat) DAV/2<br>Set-Cookie: Apache=209.67.79.1.1207175878115366; path=/; expires=Fri, 02-Apr-10 22:37:58 GMT<br>

Pragma: no-cache<br>Content-Length: 721<br>Expires: Thu, 01 Jan 1970 00:00:00 GMT<br>Set-Cookie: JSESSIONID=H0KGJfyJpp2jcMXXgJTdPt27SxnhT1GTSBpCdkDgHqbdMXjl2Y1L!1822486824; path=/<br>Cache-Control: no-store<br>Set-Cookie: BIGipServercert-1-nitracluster.dealer=1029377034.13601.0000; path=/<br>

Connection: close<br>Content-Type: text/html;charset=utf-8<br>Set-Cookie: BIGipServercert-1-staticweb=861604874.20480.0000; path=/<br>**** CONTENT ****<br><html><br><head><br><title>Welcome!</title><br>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><br><br><script language="JavaScript"><br><!--<br>function topLoader() {<br>        if (window != top) {<br>
        top.location.href = window.location.href;<br>
        }<br>}<br>//--><br></script><br></head><br><br><br><br><frameset rows="66,1*,40" frameborder="NO" border="0" framespacing="0" onload="topLoader()"><br>

  <frame noresize src="/security/LoginHeader.jsp" name="header" scrolling="NO"><br>  <frame noresize src="/security/Login.jsp"  name="content" scrolling="AUTO"><br>

  <frame noresize src="/security/footer.jsp"  name="footer" scrolling="NO"><br></frameset><br><br><br><noframes><br><body bgcolor="#FFFFFF"><br><br><br><br>
<br>
</body><br></noframes><br></html><br><br>HTTP CRITICAL - string not found|time=0.027586s;;;0.000000 size=1319B;;;0</font><br><br>#-----------------------------------------------------------------#<br><br>

Any assistance would be greatly appreciated.<br><br>Thanks,<br><font color="#888888"><br>-- <br>Shabu Khan | Mentis Systems Inc | W: (425) 649-1130 | C: (425) 301-1948 | F: (425) 256-2819
</font></div><br><br clear="all"><br>-- <br>Shabu Khan | Mentis Systems Inc | W: (425) 649-1130 | C: (425) 301-1948 | F: (425) 256-2819