<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: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=us-ascii"><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:0cm;
        margin-bottom:.0001pt;
        mso-add-space:auto;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
p.MsoNormalCxSpFirst, li.MsoNormalCxSpFirst, div.MsoNormalCxSpFirst
        {mso-style-type:export-only;
        margin:0cm;
        margin-bottom:.0001pt;
        mso-add-space:auto;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
p.MsoNormalCxSpMiddle, li.MsoNormalCxSpMiddle, div.MsoNormalCxSpMiddle
        {mso-style-type:export-only;
        margin:0cm;
        margin-bottom:.0001pt;
        mso-add-space:auto;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
p.MsoNormalCxSpLast, li.MsoNormalCxSpLast, div.MsoNormalCxSpLast
        {mso-style-type:export-only;
        margin:0cm;
        margin-bottom:.0001pt;
        mso-add-space:auto;
        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;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle15
        {mso-style-type:personal;
        font-family:"Arial",sans-serif;
        color:#00007F;}
span.EmailStyle16
        {mso-style-type:personal-compose;
        font-family:"Arial",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormalCxSpFirst><span style='font-size:10.0pt;font-family:"Arial",sans-serif'>Since this is check_http v2.1.1 from Debian 8, and may now be resolved, but I’ll report this anyway just in case it’s enough of an edge case to have not yet been detected and reported.<o:p></o:p></span></p><p class=MsoNormalCxSpMiddle><span style='font-size:10.0pt;font-family:"Arial",sans-serif'><o:p> </o:p></span></p><p class=MsoNormalCxSpMiddle><span style='font-size:10.0pt;font-family:"Arial",sans-serif'><o:p> </o:p></span></p><p class=MsoNormalCxSpMiddle><span style='font-size:10.0pt;font-family:"Arial",sans-serif'>We have a server application (F-Secure Policy Manager Server for Linux) that in its latest version (13) uses chunked transfer encoding and does not close the connection after sending the final chunk. (Testing the non-secure port with telnet shows that it sits and waits for the client to close the connection.)<o:p></o:p></span></p><p class=MsoNormalCxSpMiddle><span style='font-size:10.0pt;font-family:"Arial",sans-serif'><o:p> </o:p></span></p><p class=MsoNormalCxSpMiddle><span style='font-size:10.0pt;font-family:"Arial",sans-serif'>check_http requires the server to close the connection after the final chunk is set, and when the HTTP(S) server does not close the connection, check_https times out the connection.<o:p></o:p></span></p><p class=MsoNormalCxSpMiddle><span style='font-size:10.0pt;font-family:"Arial",sans-serif'><o:p> </o:p></span></p><p class=MsoNormalCxSpMiddle><span style='font-size:10.0pt;font-family:"Arial",sans-serif'>The bigger problem is that verbose mode (-v) pretends that no data was received. It does not write output in real time, and it doesn’t report even the headers unless the connection was successful. What -v should show, is everything received up to the point that the connection timed out. Instead, it makes it look like the connection is being blocked somewhere and that nothing was received, not even the headers.<o:p></o:p></span></p><p class=MsoNormalCxSpMiddle><span style='font-size:10.0pt;font-family:"Arial",sans-serif'><o:p> </o:p></span></p><p class=MsoNormalCxSpMiddle><span style='font-size:10.0pt;font-family:"Arial",sans-serif'>For HTTP, I can use telnet to probe the output directly (testing in links from the Nagios server showed that it was not a firewall problem -- I could see that it was Nagios-specific somehow). For HTTPS, I cannot do that. Fortunately, this server has both HTTP and HTTPS modes, making testing easy. If it was HTTPS-only, I’d have to use something like openssl client to run the tests, something that is possibly less well-known.<o:p></o:p></span></p><p class=MsoNormalCxSpMiddle><span style='font-size:10.0pt;font-family:"Arial",sans-serif'><o:p> </o:p></span></p><p class=MsoNormalCxSpMiddle><span style='font-size:10.0pt;font-family:"Arial",sans-serif'><o:p> </o:p></span></p><p class=MsoNormalCxSpMiddle><span style='font-size:10.0pt;font-family:"Arial",sans-serif'>Granted, it’s a real edge case, but I thought I’d mention it anyway in case anything can be done to help other admins with similar situations (either servers that leave the connection open, or situations where connections hang half-way through, which I’ve seen before due to networking problems.)<o:p></o:p></span></p><p class=MsoNormalCxSpMiddle><span style='font-size:10.0pt;font-family:"Arial",sans-serif'><o:p> </o:p></span></p><p class=MsoNormalCxSpMiddle><span style='font-size:10.0pt;font-family:"Arial",sans-serif'><o:p> </o:p></span></p><p class=MsoNormalCxSpMiddle><span style='font-size:10.0pt;font-family:"Arial",sans-serif'>Regards<o:p></o:p></span></p><p class=MsoNormalCxSpMiddle><span style='font-size:10.0pt;font-family:"Arial",sans-serif'><o:p> </o:p></span></p><p class=MsoNormalCxSpLast><span style='font-size:10.0pt;font-family:"Arial",sans-serif'>Daniel.<o:p></o:p></span></p></div></body></html>