From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4gl01T0gG3z30Mx for ; Tue, 23 Jun 2026 09:21:17 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [IPv6:2001:678:b28::25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail01.haj.ipfire.org", Issuer "YR2" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4gl01P586tz2xJ5 for ; Tue, 23 Jun 2026 09:21:13 +0000 (UTC) Received: from mail01.brechtschulen.de (regulus.brecht-schule.hamburg [84.46.83.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bit raw public key) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.brechtschulen.de", Issuer "YR1" (not verified)) by mail01.ipfire.org (Postfix) with ESMTPS id 4gl01M2s17z5gV for ; Tue, 23 Jun 2026 09:21:11 +0000 (UTC) Authentication-Results: mail01.ipfire.org; dkim=pass header.d=brecht-schule.hamburg header.s=202101ed25519 header.b=to8PIYWA; dkim=pass header.d=brecht-schule.hamburg header.s=202101rsa header.b=GAvUDKO8; spf=pass (mail01.ipfire.org: domain of dietzmann@brecht-schule.hamburg designates 84.46.83.131 as permitted sender) smtp.mailfrom=dietzmann@brecht-schule.hamburg; dmarc=pass (policy=reject) header.from=brecht-schule.hamburg ARC-Seal: i=1; a=rsa-sha256; d=lists.ipfire.org; s=202003rsa; cv=none; t=1782206471; b=hPAEjdw8VBK+x8BjurgiAfFGKIZsEmBZJa5Oiz6eTh2R0St2avuRgEgEXDDROs/OFaj5fV UPfICaJyNsNt7CAzRUFIlM7MG7dZluFyeaLIl+uGJ+0MwF4xfa+iRJ6DX6w9I49nNHTcIH mh2Qu4ss/YctotWEc+fUnibSp8STm5s//B3q/S3+imWRP8F6mJhPPo61RVS1/Nh3FY9RGG ua2TsJsfQsDMkpAT5kuzxDps2Hj9AHpLAZP3wklTFkYT5xrovqfvCUXju33Dcba3yp8oR+ 5nF1WHNK+8BmgccGi92U47d6RvkPC4FeDRJH0VDH7u5Jh2qJMwZdMR7fhK0DnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1782206471; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=NoJRuqPFJ9rT3khRplgoFujk6nOE3Lvd1giMJuXL3DI=; b=cj9GwBmb7NeRSCp5L2D4HQyMsTQm3M7SBiirH+tlU1nWocR4nX4sPZ0ndAXg6/0qaqdWJZ B/x7GcDr3BRR8IbGClboCcFMk+WabmUnq6qBtyyTVNieZ6B6Pj1jTajFLIFB8qfARkmM20 G1yK3u2QvvIZIGgssZas/zHtxoDFzYW9LgCFQ+dmS3j2NjWRCTy5fNSz2fthc2ep3lXxjY xAhxvd54C/0Er6pazsHGKo8u8rPU6GtoCZBw7RZszsMKVeo3/02cu/0B2sv77wjKt5UaEp 1dX3Cx0ADYx7kfC5qoV1m/x+DhMDRrMUoAMlWM9SEWQoJuajY6o5vnBvLD93pw== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=brecht-schule.hamburg header.s=202101ed25519 header.b=to8PIYWA; dkim=pass header.d=brecht-schule.hamburg header.s=202101rsa header.b=GAvUDKO8; spf=pass (mail01.ipfire.org: domain of dietzmann@brecht-schule.hamburg designates 84.46.83.131 as permitted sender) smtp.mailfrom=dietzmann@brecht-schule.hamburg; dmarc=pass (policy=reject) header.from=brecht-schule.hamburg Received: from [192.168.5.13] (PC-BIT-DTZM-LIN.brechtschulen.de [192.168.5.13]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by mail01.brechtschulen.de (Postfix) with ESMTPSA id 4gl01K5xsKz3xPb; Tue, 23 Jun 2026 11:21:09 +0200 (CEST) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=brecht-schule.hamburg; s=202101ed25519; t=1782206470; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NoJRuqPFJ9rT3khRplgoFujk6nOE3Lvd1giMJuXL3DI=; b=to8PIYWAIq4fhJXlSQ+RnTWWHB05WmI8UHomlYiWkYv07RrHu9QZKNbvPk+iWuw0Nd/xIo g5ZFjfBUy4CVKEDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brecht-schule.hamburg; s=202101rsa; t=1782206470; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NoJRuqPFJ9rT3khRplgoFujk6nOE3Lvd1giMJuXL3DI=; b=GAvUDKO8k3tk+TVg/QkGUH4VE/Md22hPNJ9p9gxHg+d6wZBOLv2oeQODIH88E2Zd2ghjA7 nz9Dxep3FtrcCWeDOOnB31E70w2i98U1gu94vzlJmw6hMVn3BI7YAE/e37X0DzvQ2HhzIc Giqt7WW9fFAbwshMr9gN87WKFZtlRLKg5xflGA2GGNIz3HvXHITA0NM9CsZviIA+URjYUy /XwF8AIPdWzvCbJYcIXMX1XZ5Dr/Lz1GGtdrRrXE8jC5Tnr+MRQRvUPCe3217Tr+mjPpXd Yj1XjYwpaL3kD1TtL6PDLEfdAEDns9Yc3DBKIJgK25TqZlB5uInXyvCCmCpbyg== Message-ID: <10436d11-146d-4358-94b5-2687f577bed9@brecht-schule.hamburg> Date: Tue, 23 Jun 2026 11:21:09 +0200 Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 Subject: Re: [PATCH 2/2] Redirect Apache status requests Content-Language: de-DE To: development@lists.ipfire.org References: <20260622141502.375427-1-dietzmann@brecht-schule.hamburg> <03c95271-dec0-4b62-868c-40c7fb25bbb8@brecht-schule.hamburg> <49784f88-adb5-410f-8b69-f2bf2007a3d9@ipfire.org> <9f83c1ba-02e0-42e4-a350-c4264d53f123@ipfire.org> Cc: Peer Dietzmann From: Peer Dietzmann Organization: Brecht Schule Hamburg / Brecht-IT In-Reply-To: <9f83c1ba-02e0-42e4-a350-c4264d53f123@ipfire.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-10.05 / 11.00]; BAYES_HAM(-3.00)[100.00%]; DWL_DNSWL_MED(-2.00)[brecht-schule.hamburg:dkim]; R_DKIM_ALLOW(-1.70)[brecht-schule.hamburg:s=202101ed25519,brecht-schule.hamburg:s=202101rsa]; SPF_REPUTATION_HAM(-0.97)[-0.97372053479624]; DKIM_REPUTATION(-0.97)[-0.97347403693236]; DMARC_POLICY_ALLOW(-0.50)[brecht-schule.hamburg,reject]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCVD_IN_DNSWL_MED(-0.20)[84.46.83.131:from]; ONCE_RECEIVED(0.20)[]; R_SPF_ALLOW(-0.20)[+ip4:84.46.83.131]; MX_GOOD(-0.10)[regulus.brecht-schule.hamburg]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; IP_REPUTATION_HAM(0.00)[asn: 15943(-0.39), country: DE(-0.01), ip: 84.46.83.131(-0.97)]; TO_DN_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; HAS_ORG_HEADER(0.00)[]; RCVD_TLS_ALL(0.00)[]; DKIM_TRACE(0.00)[brecht-schule.hamburg:+]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15943, ipnet:84.46.0.0/17, country:DE]; MISSING_XM_UA(0.00)[]; FROM_HAS_DN(0.00)[] X-Rspamd-Server: mail01.haj.ipfire.org X-Rspamd-Queue-Id: 4gl01M2s17z5gV X-Rspamd-Action: no action Hi Matthias, On 23/06/2026 09:39, Matthias Fischer wrote: > On 22.06.2026 22:42, Peer Dietzmann wrote: >> Hi Matthias, > Hi Peer, >> thank you for adding this. Will try it again when it was merged but it >> looks like the tests I did today, so it should work. > Sorry, but this isn't clear to me - blame the weather... ;-) > > This patch hasn't been pushed, he is NOT in patchwork or GIT. > Shall I push it or will you? > > Or does your message mean that it is no longer needed? now I'm a bit confused, both patches I sent, must be merged into the next release to make it work. The patch you provided also. If you know where this is done, please do it, all three are required. What I meant is, that when everything is in testing, then I will test it again to confirm that the changed files are shipped correctly. Best, Peer > > Best > Matthias > >> Best, >> >> Peer >> >> On 22/06/2026 19:18, Matthias Fischer wrote: >>> *Third try - fixed typo in patch line* >>> >>> - "-Np1" should have been "-Np2". >>> >>> Without the quotes, of course. >>> >>> Sorry...its too warm and the observium-lfs has a different path variable >>> (DIR_APP) than others. I put both files in attachments. >>> >>> ########################################################## >>> >>> *Second try with attachment in unix format (line breaks)!* >>> >>> ########################################################## >>> >>> On 22.06.2026 16:20, Peer Dietzmann wrote: >>>> Hello, >>> Hi, >>> >>>> there is also another patch required to make the module working. But I >>>> just can't find the file in the repository that needs to be changed: >>> You won't find this file in the repository - that would be too easy. ;-) >>> >>> This 'apache'-file is stored in the observium archive >>> (observium/scripts/agent-local/apache). And only there. It is extracted >>> during the build phase, and is then immediately deleted. This is >>> controlled via the lfs file: >>> >>> Line 83 (to be sure: first delete and then unpack source): >>> ... >>> @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) >>> ... >>> >>> Line 103 (clean up): >>> ... >>> @rm -rf $(DIR_APP) >>> ... >>> >>> IMHO the best way to apply your changes would be a patchfile (see >>> attachment) which needs to be copied into the repository in the >>> directory '/src/patches/observium', e.g.). >>> >>> Then the lfs file needs something like this in a new line *84*: >>> ... >>> cd $(DIR_APP) && patch -Np2 < >>> $(DIR_SRC)/src/patches/observium/[NAME_OF_PATCHFILE] >>> ... >>> HTH >>> Matthias >>> >>>> Line 29 of /usr/lib/observium_agent/scripts-available/apache has to be >>>> changed to: >>>> >>>>         close INFILE; >>>> } else { >>>>         # grab the status URL (fresh data) >>>>         @data = split /(\n)/, LWP::Simple::get( >>>> 'http://localhost:81/server-status?auto' ) >>>>                 or die "Data fetch failure.\n"; >>>> >>>>         # write file >>>> >>>> The *localhost* has to be changed to *localhost:81* >>>> >>>> The concerned bug that should be fixed through those three patches is: >>>> https://bugzilla.ipfire.org/show_bug.cgi?id=14017 >>>> >>>> Best, >>>> >>>> Peer >>>> >>>> On 22/06/2026 16:15, Peer Dietzmann wrote: >>>>> Redirect requests to Apache's status to it's backend, force local requests. >>>>> This is required to allow Observium's agent to pull metrics from Apache. >>>>> >>>>> Best, >>>>> Peer >>>>> >>>>> Signed-off-by: Peer Dietzmann >>>>> --- >>>>> config/httpd/httpd.conf | 6 ++++++ >>>>> 1 file changed, 6 insertions(+) >>>>> >>>>> diff --git a/config/httpd/httpd.conf b/config/httpd/httpd.conf >>>>> index c694bffe2..09b10b50f 100644 >>>>> --- a/config/httpd/httpd.conf >>>>> +++ b/config/httpd/httpd.conf >>>>> @@ -49,4 +49,10 @@ Include /etc/httpd/conf/default-server.conf >>>>> # Virtual server configuration >>>>> Include /etc/httpd/conf/vhosts.d/*.conf >>>>> >>>>> +# Allow local clients to pull Apache's status >>>>> + >>>>> + SetHandler server-status >>>>> + Require local >>>>> + >>>>> + >>>>> # EOF > -- Mit freundlichem Gruß Peer Dietzmann Brecht-IT | Administration und Support