[Xymon] https tests through a proxy

Galen Johnson Galen.Johnson at sas.com
Fri Aug 7 15:34:52 CEST 2015


Thanks, Phil.  It would be better if proxy support were integrated into xymonnet since there are several other tests that would benefit from it.


=G=


________________________________
From: Phil Crooker <Phil.Crooker at orix.com.au>
Sent: Friday, August 7, 2015 3:02 AM
To: Galen Johnson; xymon at xymon.com
Subject: RE: https tests through a proxy


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:


TEST="phttps"

$XYMONHOME/bin/xymongrep $TEST | while read L
do
        set $L  # To get one line of output from xymongrep
        HOSTIP="$1"
        MACHINEDOTS="$2"
        MACHINE=`echo $2 | $SED -e's/\./,/g'`

        curl --max-time 30 http://$MACHINEDOTS > $XYMONHOME/tmp/$MACHINEDOTS.$$

        etc, etc, etc

done


There are many ways of handling the output depending on what you want to test for. curl, wget and w3m work fine.


Not the cleanest way to handle this but it does work and you can tweak it endlessly.


Hope that helps...

<mailto:FirstName.LastName at orix.com.au>

________________________________
From: Xymon <xymon-bounces at xymon.com> on behalf of Galen Johnson <Galen.Johnson at sas.com>
Sent: Thursday, 6 August 2015 4:13 AM
To: xymon at xymon.com
Subject: [Xymon] https tests through a proxy


Hey,


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.


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).


thanks


=G=

--

Please consider the environment before printing this e-mail

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.

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 website<http://www.orix.com.au>.

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20150807/44626f23/attachment.html>


More information about the Xymon mailing list