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 4gkg9m3Qv1z2xWq for ; Mon, 22 Jun 2026 20:42:20 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1 raw public key) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "YR2" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4gkg9h4zhrz2xJ5 for ; Mon, 22 Jun 2026 20:42:16 +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 4gkg9g3r86zNZ for ; Mon, 22 Jun 2026 20:42:15 +0000 (UTC) Authentication-Results: mail01.ipfire.org; dkim=pass header.d=brecht-schule.hamburg header.s=202101ed25519 header.b=PUHxbRVU; dkim=pass header.d=brecht-schule.hamburg header.s=202101rsa header.b=O7vuRllG; 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=1782160935; b=EfVuuK/rCXVA6M54lhXguwwBR1/ut68vr9hPHi186tmOlN4Y4MJJRU/CTdViiKVbjkM+Ei MkM4Et2wuPpmQ7ErfMq+9wYPP4RcRKhU5WBDmsuWCAYMf8J61ohYtruIg9uSrHjdpqjJbn bxpP4AWIvOnk/lKnU60L1HD+vAK3adKXs0ez9+XNwRFT6qjYITK6UfrOLc3yrL3+5Px/ed eFqxbL6fRpiXY8tlj2bMH6H0hV4K1LnjV3t/8zrSdhvgxrqsfbd9SI8TP6x7trxCiDHxrV PVXtC8SMtbez3h4gVfDEKRxDa0jqvB7gL65HgQqRa8eXjR1kbawMa8hDJ3BnuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1782160935; 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=v3PMrUX6OREv5S3hMj/BEbrln07ir1ZD6dF5VPrEIwo=; b=AgPlAgiylX0adv+7OeB6xJKed4snUIqSh1ygC4Fe9I2501XG+DqKWWnttP9plc0FYSZJj+ JivNJxK+CH1YZwJSTYIIURw6T9w4Vjvq2b0HXy18m6aCB5SbYsdu7zPtI1LHAyqFjw66tc iL6Fp0n/WpMv99WDx2Bn8apSWcNZ5F80KWkH01eWTopRY3YJ09tds2qwJZzk+IwFvotg3X AjI5tLKsDkFGwrPZbtw/1wgnkLyqffduoPFw++OFjKheO4Hpg/OlDqcj92EOwhJ5pAzBXB Xe28KFNalYV+NRxnZ1sIO3M3h0uGKfVwHY7h6mszxn8kj/JaaGncfPdQId4IhQ== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=brecht-schule.hamburg header.s=202101ed25519 header.b=PUHxbRVU; dkim=pass header.d=brecht-schule.hamburg header.s=202101rsa header.b=O7vuRllG; 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 [10.52.117.11] (unknown [10.52.117.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.brechtschulen.de (Postfix) with ESMTPSA id 4gkg9f1lc8z3ws6; Mon, 22 Jun 2026 22:42:13 +0200 (CEST) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=brecht-schule.hamburg; s=202101ed25519; t=1782160934; 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=v3PMrUX6OREv5S3hMj/BEbrln07ir1ZD6dF5VPrEIwo=; b=PUHxbRVU4SJM6NXoO7RS+Nqk7eloj/SkodtcaafyTehC6C/4oLJFlT12M0GkpNdEZilisX qdV8ag9iGVcovtAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brecht-schule.hamburg; s=202101rsa; t=1782160934; 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=v3PMrUX6OREv5S3hMj/BEbrln07ir1ZD6dF5VPrEIwo=; b=O7vuRllGDQ08VMU4kLrM9SoNJ6bkZmzkGa9rY3pOKDBC7Vi94VDowhmNPNTvmkZkkt1CNh Ed+b2RrSU6ihRmIXOIdRJimwWt3blKIaduZh1zgDtS3kwae922jaf901EuyBizx+nuC+gW TU0qTyrZPZLSRJ5RwaXYn2i9Y+xxBAksaq4j2XvrcyvkjL1bafURGslFkSwVLxPcBvbWDG hIFzaw0D3kewj/eRrCmpv31HDP9FKCcbjAajoA2S5qyoBE77QMRp0mGpDRXRKgm34M19TL HwxaCTmtxIyxKDSEleuRAV6+35RjtTt9TTw77pSdj1lDYJFi5XTGwLAR4kh2Lg== Message-ID: Date: Mon, 22 Jun 2026 22:42:11 +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: en-US 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> Cc: Peer Dietzmann From: Peer Dietzmann Organization: Brecht-Schule Hamburg / IT-Team In-Reply-To: <49784f88-adb5-410f-8b69-f2bf2007a3d9@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.97379519535848]; DKIM_REPUTATION(-0.97)[-0.97354673382023]; 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]; DKIM_TRACE(0.00)[brecht-schule.hamburg:+]; FUZZY_RATELIMITED(0.00)[rspamd.com]; MID_RHS_MATCH_FROM(0.00)[]; IP_REPUTATION_HAM(0.00)[asn: 15943(-0.39), country: DE(-0.01), ip: 84.46.83.131(-0.97)]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; HAS_ORG_HEADER(0.00)[]; TO_DN_SOME(0.00)[]; MISSING_XM_UA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; RCVD_TLS_ALL(0.00)[]; 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]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[] X-Rspamd-Server: mail01.haj.ipfire.org X-Rspamd-Queue-Id: 4gkg9g3r86zNZ X-Rspamd-Action: no action Hi Matthias, 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. 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 Brecht-Schule Hamburg GmbH Norderstrasse 163-165 | 20097 Hamburg Tel.: +49 40 21 11 12 - 37 | Fax: +49 40 21 11 12 - 20 E-Mail: dietzmann@brecht-schule.hamburg | www.brecht-schule.hamburg Diese Email enthält ggfs. vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese Email irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Email. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Email ist nicht gestattet.