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 4gkWZX40w7z2xsf for ; Mon, 22 Jun 2026 14:59:48 +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 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 4gkWZT1PHrz2xPN for ; Mon, 22 Jun 2026 14:59:45 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (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.ipfire.org (Postfix) with ESMTPSA id 4gkWZS2Tm0z5g0; Mon, 22 Jun 2026 14:59:44 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1782140384; 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: in-reply-to:in-reply-to:references:references; bh=8mrjFGBNdCNM/J0xOFFDIKkvYgIbn93FxY6bJIK4j6w=; b=hdKwri+MvqlYUF5a6K9fiyexIBGcSpdhj8XGSCVYLWnm9CQukQ78xQrgMjaGOTD2JUu53F xsEJX+S/KKb/1HAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1782140384; 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: in-reply-to:in-reply-to:references:references; bh=8mrjFGBNdCNM/J0xOFFDIKkvYgIbn93FxY6bJIK4j6w=; b=GJzz0k9BToQPx5O9LPl7gcN1oqrmkZLoCQmOHnziF2iMY7rK41t+RwQNF9aOxPiKA5DY4E WOjt5VNcP5WJNN39QEJHMsiC8Qwnhsg4Axri9LpEhMFse43c80SD/AgADND7gVMQ59g/99 sq6Th537KRCwbqd286e/gYwAFnWNRe4LaKRfO3kcwLVCzOTSHFEtl7bFwvL3yStuldBk3o rtciIk4icXXczJlMn1EufZWOL8udlpVp5wJi8YaAO2tyU/inVpmMygVCK9WFuOyn1R8xi0 0dpXk7w3gvHMU/ZTP4Q/OTFB1Z8F+SwNw3mVnK+n14x/yr2LPkCGO6JhE8Wbzw== Content-Type: multipart/mixed; boundary="------------7taXaV0XQtba8DofQ3t5wQV5" Message-ID: Date: Mon, 22 Jun 2026 16:59:37 +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 To: development@lists.ipfire.org References: <20260622141502.375427-1-dietzmann@brecht-schule.hamburg> <03c95271-dec0-4b62-868c-40c7fb25bbb8@brecht-schule.hamburg> Content-Language: en-US Cc: dietzmann@brecht-schule.hamburg From: Matthias Fischer In-Reply-To: <03c95271-dec0-4b62-868c-40c7fb25bbb8@brecht-schule.hamburg> This is a multi-part message in MIME format. --------------7taXaV0XQtba8DofQ3t5wQV5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 -Np1 < $(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 > --------------7taXaV0XQtba8DofQ3t5wQV5 Content-Type: text/plain; charset=UTF-8; name="01_redirect_apache_localhost_to_port_81.patch" Content-Disposition: attachment; filename="01_redirect_apache_localhost_to_port_81.patch" Content-Transfer-Encoding: base64 LS0tIGEvb2JzZXJ2aXVtL3NjcmlwdHMvYWdlbnQtbG9jYWwvYXBhY2hlCVN1biBPY3QgIDQg MDc6MjE6MDYgMjAxNQ0KKysrIGIvb2JzZXJ2aXVtL3NjcmlwdHMvYWdlbnQtbG9jYWwvYXBh Y2hlCU1vbiBKdW4gMjIgMTY6MzY6NDAgMjAyNg0KQEAgLTI2LDcgKzI2LDcgQEANCiAgICAg ICAgIGNsb3NlIElORklMRTsNCiB9IGVsc2Ugew0KICAgICAgICAgIyBncmFiIHRoZSBzdGF0 dXMgVVJMIChmcmVzaCBkYXRhKQ0KLSAgICAgICAgQGRhdGEgPSBzcGxpdCAvKFxuKS8sIExX UDo6U2ltcGxlOjpnZXQoICdodHRwOi8vbG9jYWxob3N0L3NlcnZlci1zdGF0dXM/YXV0bycg KQ0KKyAgICAgICAgQGRhdGEgPSBzcGxpdCAvKFxuKS8sIExXUDo6U2ltcGxlOjpnZXQoICdo dHRwOi8vbG9jYWxob3N0OjgxL3NlcnZlci1zdGF0dXM/YXV0bycgKQ0KICAgICAgICAgICAg ICAgICBvciBkaWUgIkRhdGEgZmV0Y2ggZmFpbHVyZS5cbiI7DQogDQogICAgICAgICAjIHdy aXRlIGZpbGUNCg== --------------7taXaV0XQtba8DofQ3t5wQV5--