<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 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-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;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.5pt;
font-family:Consolas;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:Consolas;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</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=Section1>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>-----Original
Message-----<br>
From: Marc Powell [mailto:marc@ena.com] <br>
Sent: Monday, January 25, 2010 6:42 PM<br>
To: Nagios Plugin Help List<br>
Subject: Re: [Nagiosplug-help] check_http with proxy/port<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>On
Jan 25, 2010, at 5:02 PM, "Frost, Mark {PBG}" <o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><mark.frost1@pepsi.com>
wrote:<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>>
Unless I'm mistaken, it looks like the check_http plugin (I'm <o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>>
looking at 1.4.13 and 1.4.14) does not allow you to specify a port <o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>>
for a proxy host to do a check<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>It
does. I test a half dozen sites through 16 different proxies using <o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>check_http.<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif";color:black'>Interesting. I thought I tried
this combination earlier today and it did not work. I wouldn't think it
would matter, but what if I was using this combination to check an HTTPS site?<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif";color:black'><o:p> </o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif";color:black'>So then you're saying that the -p
(port) option really does tell it to change the port that the proxy (-I) uses?<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>>
If you were to specify a port with -p as in<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>>
check_http -H foo.bar.com -I proxyhost -p 9000 -u /<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I
can't verify for a few hours but this looks right to me. Should be <o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>easy
to TAFO though. I expect you can find several examples posted by <o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>me
to nagios-users by googling for 'nagios-users check_http proxy'.<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>--<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Marc<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>Thanks, Marc.<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>Mark<span style='color:black'><o:p></o:p></span></span></p>
</div>
</body>
</html>