From owner-freebsd-questions@freebsd.org Fri Jan 5 04:26:28 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 18114EAF913 for ; Fri, 5 Jan 2018 04:26:28 +0000 (UTC) (envelope-from yscrappy@gmail.com) Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 74EA8743E7 for ; Fri, 5 Jan 2018 04:26:26 +0000 (UTC) (envelope-from yscrappy@gmail.com) Received: by mail-wr0-f196.google.com with SMTP id b76so3337323wrd.3 for ; Thu, 04 Jan 2018 20:26:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=W1LIiWrHRb+aK0GJv7AHorZZ97maolFBpfUdhRdDNLs=; b=qVQouPRnvDzQGsZrsQYARhEh9VOM+vOzBEWLbLfZLHQfBVZUn8VwBuKDAgbiAUdGi8 RTuHDFV16lMvL9tAJpNabzm2CEcOcJiswimTv5CTHK03W8W6RwVSCqetCDoskXzkvYxt S6UUXvxyYQku9mHqG5tsfdpa9YHwOZJppQdi/mEqrJZv6I1pCUoIU+ksUwdYsYfISUul Ak8NhYwJheJXZAQ7kE23bnWXeIIOlNrPyTKFFSwMVi0vR32pj/sDtz2q7MGpFD+Jqsjr a4+suSzPNQaj27CFBr2yB/R+TlfpGokuqtxoFW9m2ctsWWT2AtTvik07Strhk0Fh72Tx p8nw== X-Gm-Message-State: AKGB3mIwFvqa9Wq43zdeav/c/ZDWFCu8I9wsrUi8dQhRvE5Ivpe39l6J xRwmCaf1+4boCZCC5Fj2OtHS3XFx X-Google-Smtp-Source: ACJfBotj5fRBSsxiaUuMHoszRYCQ1zXq8raHqC/AAMGP8aFWCAoobgGpdy04M2IMB02u5gfwk02gLQ== X-Received: by 10.223.164.129 with SMTP id g1mr1632882wrb.60.1515125913411; Thu, 04 Jan 2018 20:18:33 -0800 (PST) Received: from hub.org (hub.org. [188.227.186.52]) by smtp.gmail.com with ESMTPSA id v6sm4825685wrf.42.2018.01.04.20.18.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jan 2018 20:18:32 -0800 (PST) Received: from localhost (unknown [188.227.186.44]) by hub.org (Postfix) with ESMTP id 7A433172ADA9; Fri, 5 Jan 2018 04:18:31 +0000 (UTC) Received: from hub.org ([188.227.186.52]) by localhost (maia-lon.uk.hub.org [188.227.186.44]) (maiad, port 10024) with ESMTP id 93774-07; Fri, 5 Jan 2018 04:18:31 +0000 (UTC) Received: from [192.168.0.8] (S0106f0f249687dd3.gv.shawcable.net [24.108.212.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hub.org (Postfix) with ESMTPSA id AF7C8172ADA4; Fri, 5 Jan 2018 04:18:30 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.0 \(3445.1.6\)) Subject: Re: Running bsdstats through a proxy From: Marc G Fournier In-Reply-To: Date: Thu, 4 Jan 2018 20:18:28 -0800 Cc: freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <2FD5135F-097E-4665-A084-7583E3B16163@hub.org> References: <8e1589b3-1fbe-9541-dcd3-778bffd3ce43@FreeBSD.org> <8F9BE360-6F16-4CE5-9CD5-20ABF50B8BB6@hub.org> To: Olivier Nicole X-Mailer: Apple Mail (2.3445.1.6) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jan 2018 04:26:28 -0000 Hrmmm =E2=80=A6 I didn=E2=80=99t write the PROXY code, so if anyone is = familiar with proxies, please feel free to step up =E2=80=A6 but could = you modify the code ( /usr/local/etc/periodic/monthly/300.statistics ) = and change the first line to state: #!/bin/sh -x ( note, just adding the x to the end of hte line ) then send me the output ( privately, not to the list ) of: /usr/local/etc/periodic/monthly/300.statistics -nodelay that should let me see how its re-writing things =E2=80=A6 for starters, = the truncation at =E2=80=98/sc=E2=80=99 is odd, since it should be = something like: /scripts/enable_token.php=E2=80=A6 > On Jan 4, 2018, at 19:50, Olivier Nicole = wrote: >=20 > Marc, >=20 > On a new machine (FreeBSD 11.1-RELEASE-p6) with bsdstats-6.0_2, I see: >=20 > The machine contacts the proxy with: HEAD.http://rpt.bsdstats.org/. > Reply: HTTP/1.0.302Moved.Temporarily >=20 > Then the machine contacts the proxy with: = GET.http://rpt.bsdstats.org/sc > Reply: HTTP/1.0.500.Internal.Server >=20 > Best regards, >=20 > Olivier >=20 > On Fri, Jan 5, 2018 at 8:24 AM, Marc G Fournier = wrote: >>=20 >> You should be able to just add them to /etc/periodic.conf =E2=80=A6 = bsdstats on FreeBSD will read its environment variables from there =E2=80=A6= >>=20 >>=20 >>=20 >>> On Nov 14, 2017, at 23:45, Matthew Seaman = wrote: >>>=20 >>> On 15/11/2017 05:19, Olivier wrote: >>>> Hi, >>>>=20 >>>> I would like to enable bsdstats to run, but I need to configure a = proxy. >>>>=20 >>>> I see it rely on the environment variable HTTP_PROXY, but where = should I >>>> define it so that it is used by the monthly periodic script and by >>>> bsdstats launched at boot? >>>>=20 >>>> TIA, >>>>=20 >>>> Olivier >>>>=20 >>>=20 >>> /etc/login.conf should work for you. You can add whatever = environment >>> settings you want to the :setenv=3DMAIL=3D/var/mail/$,BLOCKSIZE=3DK:\= line. >>>=20 >>> Remember to run 'cap_mkdb /etc/login.conf' after editing the file. >>>=20 >>> Cheers, >>>=20 >>> Matthew >>>=20 >>=20 >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org"