[Xymon] (Take 2) Re: Using proxy for http requests

J.C. Cleaver cleaver at terabithia.org
Mon May 25 04:23:02 CEST 2015


(Sorry, hit 'Send' a little too early there.)


Agreed that that's probably something that should be taken into account as
well.

The key is the principle of least surprise for a sysadmin who's monitoring
things. As to whether presuming the system proxy should be used or whether
we should assume that testing http://www.example.net/ means testing just
that, I'm not sure the answer to.

There other big issue, in particular is that there's no specific syntax
for *ignoring* a proxy, so before any sort of global override is allowed,
there'd need to be a means for that.



Regards,

-jc


On Sun, May 24, 2015 5:54 pm, Galen Johnson wrote:
> So it won't honor the system proxy server environment variable (ie,
export http_proxy=myproxy.example.com:3128)?  Seems like a bit of an
> oversight...I could understand if you want to override the proxy to use
something different but not just ignore it.  Note...this is from the
xymon server only.
>
> =G=
>
> ________________________________________
> From: J.C. Cleaver <cleaver at terabithia.org>
> Sent: Sunday, May 24, 2015 2:55 PM
> To: Galen Johnson
> Cc: xymon at xymon.com
> Subject: Re: [Xymon] Using proxy for http requests
>
> On Sat, May 23, 2015 6:21 pm, Galen Johnson wrote:
>> ?Bumping this in case it got lost in the upgrade issue flood...
>>
>>
>> =G=
>>
>>
>> ________________________________
>> From: Xymon <xymon-bounces at xymon.com> on behalf of Galen Johnson
<Galen.Johnson at sas.com>
>> Sent: Thursday, May 21, 2015 11:25 AM
>> To: xymon at xymon.com
>> Subject: [Xymon] Using proxy for http requests
>>
>>
>> I must be somewhat dense today but I need to use a proxy server for ALL
http requests and I can't tell if I need to use --proxy (and if so,
which
>> stanza since this is a built-in server-side test) or if I just set the
environment variable http_proxy= will work.  I would prefer not to have
to
>> add it to all of my http tests individually and it's also not clear if
that syntax will work for the "apache=" entries.
>>
>
> I'm looking through the code and it seems that for xymonnet http testing
(as opposed to submitting messages via HTTP and xymoncgimsg.cgi),
there's no universal way of specifying a proxy for all URLs that are
being tested.
>
> The proxy needs to be added to the URL as in
> https://www.xymon.com/help/manpages/man5/hosts.cfg.5.html#lbAR and then
--bb-proxy-syntax needs to tb enabled on the xymonnet command line
https://www.xymon.com/help/manpages/man1/xymonnet.1.html#lbAH
>
> http_proxy= (and --proxy) are used by the xymon command-line utility for
submitting messages, but not testing.
>
>
> On the bright side, this _should_ work for apache= tests as well (along
with any of the http test variants, like post/soap, etc).
>
> This seems like something that could be added in in a future release,
either on a per-host, a per-.default.-host, a global variable basis.
>
>
> Regards,
>
> -jc
>







More information about the Xymon mailing list