<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; } .ms-cui-menu { border: 1px solid rgb(166, 166, 166); font-family: 'Segoe UI', 'Segoe WP', 'Segoe UI WPC', Tahoma, Arial, sans-serif; font-size: 10pt; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255); } .ms-cui-menusection-title { } .ms-cui-ctl { vertical-align: text-top; text-decoration: none; color: rgb(51, 51, 51); } .ms-cui-ctl-on { background-color: rgb(205, 230, 247); } .ms-cui-img-cont-float { display: inline-block; margin-top: 2px; } .ms-cui-smenu-inner { padding-top: 0px; } .ms-owa-paste-option-icon { margin: 0px 6px; padding-bottom: 2px; display: inline-block; vertical-align: middle !important; } .ms-rtePasteFlyout-option { padding: 8px 4px; outline: none; } .ms-cui-menusection { float: left; width: 85px; height: 24px; overflow: hidden; } .wf { speak: none; font-weight: normal; font-variant: normal; text-transform: none; vertical-align: middle; display: inline-block; } .wf-family-owa { font-family: o365Icons; } @font-face { font-family: o365IconsIE8; font-weight: normal; font-style: normal; } @font-face { font-family: o365IconsMouse; font-weight: normal; font-style: normal; } .wf-family-owa { font-family: o365IconsMouse; } .ie8 .wf-family-owa { font-family: o365IconsIE8; } .notIE8 .wf-owa-play-large { border: 0.1em solid rgb(255, 255, 255); width: 1.4em; height: 1.4em; text-align: center; padding: 0.1em; color: rgb(255, 255, 255); } .ie8 .wf-size-play-large { width: 40px; height: 40px; font-size: 30px; } .notIE8 .wf-size-play-large { width: 40px; height: 40px; font-size: 30px; } .wf-size-x20 { font-size: 20px !important; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Thanks, Phil.  It would be better if proxy support were integrated into xymonnet since there are several other tests that would benefit from it.<br>
</p>
<p><br>
</p>
<p>=G=<br>
</p>
<p><br>
</p>
<div dir="ltr" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Phil Crooker <Phil.Crooker@orix.com.au><br>
<b>Sent:</b> Friday, August 7, 2015 3:02 AM<br>
<b>To:</b> Galen Johnson; xymon@xymon.com<br>
<b>Subject:</b> RE: https tests through a proxy</font>
<div> </div>
</div>
<div>
<p>I tested this and have the same result. The xymon user does pick up the system $http_proxy setting (or $https_proxy for that matter) but it looks like xymonnet ignores it. When I've had to test something through a proxy server, I've setup another test (call
 it phttps or whatever), and I run an ext script, something like this:</p>
<p><br>
</p>
<p>TEST="phttps"<br>
</p>
<p>$XYMONHOME/bin/xymongrep $TEST | while read L<br>
do<br>
        set $L  # To get one line of output from xymongrep<br>
        HOSTIP="$1"<br>
        MACHINEDOTS="$2"<br>
        MACHINE=`echo $2 | $SED -e's/\./,/g'`<br>
</p>
<p>        curl --max-time 30 <a href="http://$MACHINEDOTS">http://$MACHINEDOTS</a> > $XYMONHOME/tmp/$MACHINEDOTS.$$<br>
</p>
<p>        etc, etc, etc<br>
</p>
<p>done<br>
</p>
<p><br>
</p>
<p>There are many ways of handling the output depending on what you want to test for. curl, wget and w3m work fine.<br>
</p>
<p><br>
</p>
<p>Not the cleanest way to handle this but it does work and you can tweak it endlessly.<font face="Times New Roman,serif" size="3"></font></p>
<p><br>
</p>
<p>Hope that helps...</p>
<p><br>
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><a href="mailto:FirstName.LastName@orix.com.au" target="_blank"><font face="Tahoma,sans-serif" size="2"><span style="font-size:10pt"></span></font></a></span></font></p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri; font-size:12pt"><span lang="en-AU"></span></div>
</div>
<div dir="ltr" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><b>From:</b> Xymon <xymon-bounces@xymon.com> on behalf of Galen Johnson <Galen.Johnson@sas.com><br>
<b>Sent:</b> Thursday, 6 August 2015 4:13 AM<br>
<b>To:</b> xymon@xymon.com<br>
<b>Subject:</b> [Xymon] https tests through a proxy</font>
<div> </div>
</div>
<div>
<p>Hey,<br>
</p>
<p><br>
</p>
<p>Has anyone gotten Xymon http tests to work through an proxy server?  I have to be able to set the proxy server for ALL https traffic and Xymon just doesn't seem to be able to handle it.  I asked a while back and finally got to do try setting it up but the
 current recommendation has the severe shortcoming that it doesn't work for https (according to the doc) and I REALLY don't want to have to add a proxy definition to every single http test.<br>
</p>
<p><br>
</p>
<p>I've tried just adding "export http_proxy=myproxy:port" to the startup scripts but it seems to be ignored.  Seems like an unfortunate oversight in Xymon if it's not user error.  We can test for a specific ssl version but not use a proxy server?  I'm having
 trouble buying it (hence the likelyhood of user error).<br>
</p>
<p><br>
</p>
<p>thanks<br>
</p>
<p><br>
</p>
<p>=G=<br>
</p>
</div>
</div>
--
<div id="signature" style="width:650px; height:375px">
<div style="float:left; width:185px; height:375px"></div>
<div id="topSigBanner" style="background-color:#1F2A6B; width:465px; height:30px; margin:10px 0 15px 0; float:left">
</div>
<div id="sigText" style="font:normal 9px Arial,Helvetica,Sans-serif; color:#949494">
<p></p>
<h1 style="font-size:11px; font-weight:bold; padding:0; margin:0">Please consider the environment before printing this e-mail</h1>
<p></p>
<p style="padding:0; margin:0; text-align:justify">This message from ORIX Australia may contain confidential and/or privileged information. If you are not the intended recipient, any use, disclosure or copying of this message (or of any attachments to it) is
 not authorised. If you have received this message in error, please notify the sender immediately and delete the message and any attachments from your system. Please inform the sender if you do not wish to receive further communications by email.</p>
<p>The ORIX Australia Privacy Policy outlines what kinds of personal information we collect and hold, how we collect and handle it and your rights in regards to your personal information. Our Privacy Policy is available on our
<a href="http://www.orix.com.au" target="_blank" style="color:#949494">website</a>.</p>
<p>We do not accept liability for any loss or damage caused by any computer viruses or defects that may be transmitted with this message. We recommend you carry out your own checks for viruses or defects.</p>
</div>
</div>
</div>
</div>
</body>
</html>