From owner-freebsd-questions@freebsd.org Fri Jan 5 18:42:14 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 7EE44EB9347 for ; Fri, 5 Jan 2018 18:42:14 +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 0A8C5777F7 for ; Fri, 5 Jan 2018 18:42:13 +0000 (UTC) (envelope-from yscrappy@gmail.com) Received: by mail-wr0-f196.google.com with SMTP id s13so2669054wra.10 for ; Fri, 05 Jan 2018 10:42:13 -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=wGxkOqqINVMMO/dmZLTv+2qj46eQ+3EDXfPhvxhlRR0=; b=O84/Ro31OeyzztvK2qGSEecH5rsjAAbYNa51CDCNaZfYONyFxOjltiwD/UfN5JD4pi NZQhait/A7I6X6NQqiv+LqWtHJhlRhyL6IggO8+V+M0UOO1CsewJPqgNyKEEQOTfjDNg VMTTwZnS3JMUycjaq3sxg1puCNs1ZPBx3dC0w2E6SXM4OU1YJysd/A2uEYBz1P0KTEmB Xz5UZ8K/zlTFZAyMBH0ZEZe5w+bi8ps5KhxkhrtfukJjkpQ+WZwl7cTS04BkYELnDU6O zImozDHgk1FAlcQ0hV5Lx1ZLby9g3hophBP8MsrmtDKB5nViPRfGsbYUigBRtZKx1Xj0 mZVg== X-Gm-Message-State: AKGB3mL1JEwkIgl4i/G/61Rf5HTem8+nR39bPrpnPEHXHHa9ESDAqhX8 M6na3TSzH3ymE+tWevRr6/Y++6aO X-Google-Smtp-Source: ACJfBoujf0yAzxo/UlJd3b9fN4SGgbafHbF07AsOCnXL5v70XzMkVGhyr+Qj6Zz4fGiIglWwaUcDFw== X-Received: by 10.223.128.67 with SMTP id 61mr3882565wrk.234.1515176340735; Fri, 05 Jan 2018 10:19:00 -0800 (PST) Received: from hub.org (hub.org. [188.227.186.52]) by smtp.gmail.com with ESMTPSA id i65sm20371065wme.20.2018.01.05.10.18.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jan 2018 10:18:59 -0800 (PST) Received: from localhost (unknown [188.227.186.44]) by hub.org (Postfix) with ESMTP id 012C218CC789; Fri, 5 Jan 2018 18:18:59 +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 31778-08; Fri, 5 Jan 2018 18:18:58 +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 2F93218CC76F; Fri, 5 Jan 2018 18:18:53 +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: <2FD5135F-097E-4665-A084-7583E3B16163@hub.org> Date: Fri, 5 Jan 2018 10:18:50 -0800 Cc: freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <2A2754A8-109D-4E77-90BD-3B8560C0B972@hub.org> References: <8e1589b3-1fbe-9541-dcd3-778bffd3ce43@FreeBSD.org> <8F9BE360-6F16-4CE5-9CD5-20ABF50B8BB6@hub.org> <2FD5135F-097E-4665-A084-7583E3B16163@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 18:42:14 -0000 Worked with Olivier =E2=80=A6 PROXY issue he was experiencing has been = resolved =E2=80=A6 > On Jan 4, 2018, at 20:18, Marc G Fournier wrote: >=20 >=20 > 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: >=20 > #!/bin/sh -x >=20 > ( note, just adding the x to the end of hte line ) >=20 > then send me the output ( privately, not to the list ) of: >=20 > /usr/local/etc/periodic/monthly/300.statistics -nodelay >=20 > 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: >=20 > /scripts/enable_token.php=E2=80=A6 >=20 >=20 >=20 >> 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" >=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"