[Xymon] Using proxy for http requests

J.C. Cleaver cleaver at terabithia.org
Sun May 24 20:55:27 CEST 2015


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