<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" 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 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I've written a Java application that our operations team
wants to monitor via Nagios ( version 1.2 of Nagios ).<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Because my app is non-http, I used
thecom.sun.net.httpserver.HttpServer class ( a lightweight http server ) to
provide the information that ops wants.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>when ops uses wget to call the appropriate url , it returns
immediately, with the expected output.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>when ops uses check_http, it hangs until it gets a
SocketTimeout.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I have seen a bug report re HttpServer that suggests that it
doesn't immediately close the connection when it is told to ( as I am telling
it to ), so that may be the problem, but wonder if there might be something
about Nagios that is causing this. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks,<o:p></o:p></span></font></p>

<p class=MsoNormal><strong><b><font size=2 color="#00a4e3" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#00A4E3'>--</span></font></b></strong><o:p></o:p></p>

<p class=MsoNormal><strong><b><font size=2 color="#00a4e3" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#00A4E3'>George McKinney</span></font></b></strong><o:p></o:p></p>

<p class=MsoNormal><strong><b><font size=2 color="#00a4e3" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#00A4E3'>Senior Software
Developer/Analyst</span></font></b></strong><o:p></o:p></p>

<p class=MsoNormal><strong><b><i><font size=2 color="#00a4e3" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#00A4E3;font-style:italic'>MemberDirect</span></font></i></b></strong><em><i><font
size=2 color="#00a4e3" face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:#00A4E3'>(r)</span></font></i></em><strong><b><font size=2
color="#00a4e3" face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:#00A4E3'> Product Development</span></font></b></strong><o:p></o:p></p>

<p class=MsoNormal><font size=2 color="#5f5f5f" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#5F5F5F'>phone: 604 737 5900</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color="#5f5f5f" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#5F5F5F'>email: gmckinney<a
href="mailto:gmckiney@memberdirect.ca"><font size=3 face="Times New Roman"><span
style='font-size:12.0pt;font-family:"Times New Roman"'>@memberdirect.ca</span></font></a></span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color="#5f5f5f" face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:#5F5F5F'>website:
memberdirect.ca</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

</body>

</html>