<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-ligatures:none;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>That was it – thanks!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Frank<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> Travis Runyard [mailto:travisrunyard@gmail.com] <br><b>Sent:</b> Thursday, January 31, 2013 11:07 PM<br><b>To:</b> Nagios Users List<br><b>Subject:</b> Re: [Nagios-users] check_http fails on Cisco ASA<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Have you tried check_http -I <ip> -S<o:p></o:p></p><div><p class=MsoNormal>The -H is for hostnames<o:p></o:p></p></div></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Thu, Jan 31, 2013 at 8:35 PM, Frank Bulk <<a href="mailto:frnkblk@iname.com" target="_blank">frnkblk@iname.com</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><p class=MsoNormal>Does anyone have check_http working against the SSL VPN GUI interface of a<br>Cisco ASA?<br><br>Whenever I check it always closes, but wget and curl work fine:<br>=====================================================<br>nagios:/usr/lib/nagios/plugins# ./check_http -H <ip> -S -v<br>GET / HTTP/1.1<br>User-Agent: check_http/v1.4.15 (nagios-plugins 1.4.15)<br>Connection: close<br>Host: <ip><br><br><br>CRITICAL - Socket timeout after 10 seconds<br>nagios:/usr/lib/nagios/plugins#<br>=====================================================<br>nagios:/usr/lib/nagios/plugins# wget <a href="https://%3cip">https://<ip</a>> --no-check-certificate<br>--2013-01-31 22:31:39--  <a href="https://%3cip%3e/">https://<ip>/</a><br>Connecting to <ip>:443... connected.<br>WARNING: cannot verify <ip>âs certificate, issued by<br>â/CN=<host>/unstructuredName=<host>â<br><br>Self-signed certificate encountered.<br>WARNING: certificate common name â<host>â<ip>â<br><br>HTTP request sent, awaiting response... 302 Object Moved<br>Location: /+CSCOE+/logon.html [following]<br>--2013-01-31 22:31:39--  <a href="https://%3cip%3e/+CSCOE+/logon.html">https://<ip>/+CSCOE+/logon.html</a><br>Connecting to <ip>:443... connected.<br>WARNING: cannot verify <ip>âs certificate, issued by<br>â/CN=<host>/unstructuredName=<host>â<br><br>Self-signed certificate encountered.<br>WARNING: certificate common name â<host>â<ip>â<br><br>HTTP request sent, awaiting response... 200 OK<br>Length: unspecified [text/html]<br>Saving to: âindex.htmlâ<br><br>    [ <=><br>] 4,514       --.-K/s   in 0.03s<br><br>2013-01-31 22:31:39 (158 KB/s) - âindex.htmlâ<br><br>nagios:/usr/lib/nagios/plugins#<br>=====================================================<br>nagios:/usr/lib/nagios/plugins# curl <a href="https://%3cip">https://<ip</a>> --insecure -v<br>* About to connect() to <ip> port 443 (#0)<br>*   Trying <ip>... connected<br>* Connected to <ip> (<ip>) port 443 (#0)<br>* successfully set certificate verify locations:<br>*   CAfile: none<br>  CApath: /etc/ssl/certs<br>* SSLv3, TLS handshake, Client hello (1):<br>* SSLv3, TLS handshake, Server hello (2):<br>* SSLv3, TLS handshake, CERT (11):<br>* SSLv3, TLS handshake, Server finished (14):<br>* SSLv3, TLS handshake, Client key exchange (16):<br>* SSLv3, TLS change cipher, Client hello (1):<br>* SSLv3, TLS handshake, Finished (20):<br>* SSLv3, TLS change cipher, Client hello (1):<br>* SSLv3, TLS handshake, Finished (20):<br>* SSL connection using RC4-SHA<br>* Server certificate:<br>*        subject: CN=<host>; unstructuredName=<host><br>*        start date: 2010-02-03 00:10:30 GMT<br>*        expire date: 2020-02-01 00:10:30 GMT<br>*        common name: <host> (does not match '<ip>')<br>*        issuer: CN=<host>; unstructuredName=<host><br>*        SSL certificate verify result: self signed certificate (18),<br>continuing anyway.<br>> GET / HTTP/1.1<br>> User-Agent: curl/7.21.0 (x86_64-pc-linux-gnu) libcurl/7.21.0<br>OpenSSL/0.9.8o zlib/<a href="http://1.2.3.4" target="_blank">1.2.3.4</a> libidn/1.15 libssh2/1.2.5<br>> Host: <ip><br>> Accept: */*<br>><br>* HTTP 1.0, assume close after body<br>< HTTP/1.0 302 Object Moved<br>< Server: Cisco AWARE 2.0<br><<br>Fri, 01 Feb 2013 04:07:54 GMT<br>< Location: /+CSCOE+/logon.html<br>< Set-Cookie: tg=; expires=Thu, 01 Jan 1970 22:00:00 GMT; path=/<br>< Content-Type: text/html; charset=UTF-8<br>< Transfer-Encoding: chunked<br>< Cache-Control: no-cache<br>< Pragma: no-cache<br>* HTTP/1.0 connection set to keep alive!<br>< Connection: Keep-Alive<br>< Date:<br><br>* Connection #0 to host <ip> left intact<br>* Closing connection #0<br>* SSLv3, TLS alert, Client hello (1):<br>nagios:/usr/lib/nagios/plugins#<br>=====================================================<br><br><br>------------------------------------------------------------------------------<br>Everyone hates slow websites. So do we.<br>Make your web apps faster with AppDynamics<br>Download AppDynamics Lite for free today:<br><a href="http://p.sf.net/sfu/appdyn_d2d_jan" target="_blank">http://p.sf.net/sfu/appdyn_d2d_jan</a><br>_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<o:p></o:p></p></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>