| Message ID | 20260622141502.375427-1-dietzmann@brecht-schule.hamburg |
|---|---|
| State | Staged |
| Commit | 0f2c82ad7f6f3e55a67a9c09cb2cb4af15219c91 |
| Headers |
Return-Path: <development+bounces-2315-patchwork=ipfire.org@lists.ipfire.org> 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) (Client CN "mail01.haj.ipfire.org", Issuer "YR2" (not verified)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4gkVb304y8z3wbB for <patchwork@web04.haj.ipfire.org>; Mon, 22 Jun 2026 14:15:11 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail02.haj.ipfire.org", Issuer "YE1" (not verified)) by mail01.ipfire.org (Postfix) with ESMTPS id 4gkVb26bffz6ns for <patchwork@ipfire.org>; Mon, 22 Jun 2026 14:15:10 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4gkVb25nhLz2y6G for <patchwork@ipfire.org>; Mon, 22 Jun 2026 14:15:10 +0000 (UTC) X-Original-To: development@lists.ipfire.org 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 4gkVb01lFVz2xWq for <development@lists.ipfire.org>; Mon, 22 Jun 2026 14:15:08 +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) (Client CN "mail01.brechtschulen.de", Issuer "YR1" (not verified)) by mail01.ipfire.org (Postfix) with ESMTPS id 4gkVZz1TcLz3ry for <development@lists.ipfire.org>; Mon, 22 Jun 2026 14:15:07 +0000 (UTC) Authentication-Results: mail01.ipfire.org; dkim=pass header.d=brecht-schule.hamburg header.s=202101ed25519 header.b=KUYO1Gy3; dkim=pass header.d=brecht-schule.hamburg header.s=202101rsa header.b=MgD4lptR; 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=1782137707; b=vGczWqAxonXYcZ/DPn1qd9IvxmiMGXyHm4PHiWujHLqcCl1ATtFxYdc65nmDqZpNFF4dSL JqE8Mk5KMxQ4Ukk4/7zDon++J5MXQfUJY8VswrytGrPOy2cueCrW3YWGlhjBYI07dMqopQ MhYShLryLg1QdhMaxdNRZsWOyi+kkaYP8LeZYzUPKx2LcNbtdMtT9ekXvVZOaM6JZukVO+ 912zojAe0Gvm73hNLUEdKUeqXj8NdysPH0tnkMGL79W52QZcQb7ZbRLupqsSVdJ4UagPja hqKX/sSuX2aAcYLJHKBF61iXYgxc+NpdaACmqkbEC8CN7m1ztgOgNtWGePa4nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1782137707; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=1fIYFAYi1/v9jpouCEFIomCqo1mQmPLiQkrLM+RajwI=; b=WRDwSBCR7DQTjV646tYvfxAmHjJc4tIA0f9s0UPzcRW4rz5lGqNgBPLqlKo02iRyBy8SwB aNo4ysa6qOm0mCPE7cp6ZSfGQN1Y9AYC+Pl7MYpu5fbYll4sMxh5BUd94owYCbrt4mcE9o 2V7OZhAw9HGHwHl/omRkSnpBQt5z1TxqO3IyY1NORjFVBbAUb7lkBw1X5sJ4ruH2gkJeRR xbk1aVkFCYnKcjOwyLbWbONnRiUzGG0hsIN+Q4UiQ80D3TcPkvw+Eybetn8Vr9PDBtWFXD jn4zi0v19tcKFkLqkvC0ddEGdc9sqzle5+Gq702T58OV7eYGSEUmvXW56VkFsA== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=brecht-schule.hamburg header.s=202101ed25519 header.b=KUYO1Gy3; dkim=pass header.d=brecht-schule.hamburg header.s=202101rsa header.b=MgD4lptR; 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 PC-BIT-DTZM-LIN.brechtschulen.de (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 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.brechtschulen.de (Postfix) with ESMTPSA id 4gkVZy2z59z3wyy; Mon, 22 Jun 2026 16:15:06 +0200 (CEST) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=brecht-schule.hamburg; s=202101ed25519; t=1782137706; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=1fIYFAYi1/v9jpouCEFIomCqo1mQmPLiQkrLM+RajwI=; b=KUYO1Gy3/RiHW5rMhvslAU+08N73OnBySUv7rmfXveWw1yqSaJrkaDmoTFYYmi+TC389yH eHrVUWqmL6JZUzAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brecht-schule.hamburg; s=202101rsa; t=1782137706; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=1fIYFAYi1/v9jpouCEFIomCqo1mQmPLiQkrLM+RajwI=; b=MgD4lptRf5seeCQGlez15etb2PzQFnVqmHBwrwq34rg9tO9Y0Hio3AXpTPlNohah5ZakMK 4kJliL6CaPVDLlfgjuRAjTuSD2gTkcwDmAnFrP6zw78VUCJ3xmxl4yUc8baraK1pgqtFpS m1Ztfy8r7S2alZdFiGqrbWxOLC+gEbUr+zjDm/9L9FuO2MCr0nwAj7x3ca1nUNduLvui2M 1gDXmsy7lF90R12QwSjmBGDVeFOPWyLVNd/Gc0jsHVdhy6P6pfT0LDpTa7oFSuShNG3xAl 5eoeuEotxKdOcnNT0tMDtWrr7mGssWFXvOCeDH2KZIjc2zouiVwuESwaQzzVJw== From: Peer Dietzmann <dietzmann@brecht-schule.hamburg> To: development@lists.ipfire.org, dietzmann@brecht-schule.hamburg Subject: [PATCH 2/2] Redirect Apache status requests Date: Mon, 22 Jun 2026 16:15:02 +0200 Message-ID: <20260622141502.375427-1-dietzmann@brecht-schule.hamburg> Precedence: list List-Id: <development.lists.ipfire.org> List-Subscribe: <https://lists.ipfire.org/>, <mailto:development+subscribe@lists.ipfire.org?subject=subscribe> List-Unsubscribe: <https://lists.ipfire.org/>, <mailto:development+unsubscribe@lists.ipfire.org?subject=unsubscribe> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development+help@lists.ipfire.org?subject=help> Sender: <development@lists.ipfire.org> Mail-Followup-To: <development@lists.ipfire.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-8.55 / 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]; MID_CONTAINS_FROM(1.00)[]; SPF_REPUTATION_HAM(-0.97)[-0.97379594019403]; DKIM_REPUTATION(-0.97)[-0.97354745269247]; DMARC_POLICY_ALLOW(-0.50)[brecht-schule.hamburg,reject]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; R_MISSING_CHARSET(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:84.46.83.131:c]; RCVD_IN_DNSWL_MED(-0.20)[84.46.83.131:from]; ONCE_RECEIVED(0.20)[]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.10)[regulus.brecht-schule.hamburg]; ARC_NA(0.00)[]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; IP_REPUTATION_HAM(0.00)[asn: 15943(-0.39), country: DE(-0.01), ip: 84.46.83.131(-0.97)]; FUZZY_RATELIMITED(0.00)[rspamd.com]; RCVD_TLS_ALL(0.00)[]; MISSING_XM_UA(0.00)[]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[brecht-schule.hamburg:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ASN(0.00)[asn:15943, ipnet:84.46.0.0/17, country:DE]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[] X-Rspamd-Server: mail01.haj.ipfire.org X-Rspamd-Queue-Id: 4gkVZz1TcLz3ry X-Rspamd-Action: no action |
| Series |
[1/2] Enable Apache Status Module
|
|
Commit Message
Peer Dietzmann
22 Jun 2026, 2:15 p.m. UTC
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 <dietzmann@brecht-schule.hamburg>
---
config/httpd/httpd.conf | 6 ++++++
1 file changed, 6 insertions(+)
Comments
Hello,
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:
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 <dietzmann@brecht-schule.hamburg>
> ---
> 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
> +<Location /server-status>
> + SetHandler server-status
> + Require local
> +</Location>
> +
> # EOF
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 <dietzmann@brecht-schule.hamburg> >> --- >> 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 >> +<Location /server-status> >> + SetHandler server-status >> + Require local >> +</Location> >> + >> # EOF > --- a/observium/scripts/agent-local/apache Sun Oct 4 07:21:06 2015 +++ b/observium/scripts/agent-local/apache Mon Jun 22 16:36:40 2026 @@ -26,7 +26,7 @@ close INFILE; } else { # grab the status URL (fresh data) - @data = split /(\n)/, LWP::Simple::get( 'http://localhost/server-status?auto' ) + @data = split /(\n)/, LWP::Simple::get( 'http://localhost:81/server-status?auto' ) or die "Data fetch failure.\n"; # write file
*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 -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 <dietzmann@brecht-schule.hamburg> >> --- >> 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 >> +<Location /server-status> >> + SetHandler server-status >> + Require local >> +</Location> >> + >> # EOF > --- a/observium/scripts/agent-local/apache Sun Oct 4 07:21:06 2015 +++ b/observium/scripts/agent-local/apache Mon Jun 22 16:36:40 2026 @@ -26,7 +26,7 @@ close INFILE; } else { # grab the status URL (fresh data) - @data = split /(\n)/, LWP::Simple::get( 'http://localhost/server-status?auto' ) + @data = split /(\n)/, LWP::Simple::get( 'http://localhost:81/server-status?auto' ) or die "Data fetch failure.\n"; # write file
*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 <dietzmann@brecht-schule.hamburg> >> --- >> 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 >> +<Location /server-status> >> + SetHandler server-status >> + Require local >> +</Location> >> + >> # EOF > --- a/observium/scripts/agent-local/apache Sun Oct 4 07:21:06 2015 +++ b/observium/scripts/agent-local/apache Mon Jun 22 16:36:40 2026 @@ -26,7 +26,7 @@ close INFILE; } else { # grab the status URL (fresh data) - @data = split /(\n)/, LWP::Simple::get( 'http://localhost/server-status?auto' ) + @data = split /(\n)/, LWP::Simple::get( 'http://localhost:81/server-status?auto' ) or die "Data fetch failure.\n"; # write file ############################################################################### # # # IPFire.org - A linux based firewall # # Copyright (C) 2007-2026 IPFire Team <info@ipfire.org> # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # # the Free Software Foundation, either version 3 of the License, or # # (at your option) any later version. # # # # This program is distributed in the hope that it will be useful, # # but WITHOUT ANY WARRANTY; without even the implied warranty of # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # GNU General Public License for more details. # # # # You should have received a copy of the GNU General Public License # # along with this program. If not, see <http://www.gnu.org/licenses/>. # # # ############################################################################### ############################################################################### # Definitions ############################################################################### include Config SUMMARY = Observium agent VER = 24.4 THISAPP = observium-community-$(VER) DL_FILE = $(THISAPP).tar.gz DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/observium TARGET = $(DIR_INFO)/$(THISAPP) PROG = observium-agent PAK_VER = 5 DEPS = xinetd perl-Encode-Locale SERVICES = ############################################################################### # Top-level Rules ############################################################################### objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) $(DL_FILE)_BLAKE2 = 1ef34e7bb6ce43ea7e0a122deb5031d555d942d4f79be0596fc0e2c63a2f92321aa22f34a21e6fa559a8a76e744770f9d74676955acdd76dc4d410e1107636a2 install : $(TARGET) check : $(patsubst %,$(DIR_CHK)/%,$(objects)) download :$(patsubst %,$(DIR_DL)/%,$(objects)) b2 : $(subst %,%_BLAKE2,$(objects)) dist: @$(PAK) ############################################################################### # Downloading, checking, b2sum ############################################################################### $(patsubst %,$(DIR_CHK)/%,$(objects)) : @$(CHECK) $(patsubst %,$(DIR_DL)/%,$(objects)) : @$(LOAD) $(subst %,%_BLAKE2,$(objects)) : @$(B2SUM) ############################################################################### # Installation Details ############################################################################### $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) cd $(DIR_APP) && patch -Np2 < $(DIR_SRC)/src/patches/observium/01_redirect_apache_localhost_to_port_81.patch # Install xinet.d configuration mkdir -pv /etc/xinetd.d cd $(DIR_APP) && install -m 644 scripts/observium_agent_xinetd \ /etc/xinetd.d/observium_agent_xinetd # Install the agent script cd $(DIR_APP) && install -m 755 scripts/observium_agent \ /usr/bin/observium_agent # Install modules mkdir -pv /usr/lib/observium_agent/scripts-{available,enabled} install -m 755 $(DIR_APP)/scripts/agent-local/{apache,dmi,ksm,lmsensors,nfs,nfsd,nginx,postfix_mailgraph,postfix_qshape,vmwaretools} \ /usr/lib/observium_agent/scripts-available/ # Backup install -v -m 644 $(DIR_SRC)/config/backup/includes/observium-agent \ /var/ipfire/backup/addons/includes/observium-agent @rm -rf $(DIR_APP) @$(POSTBUILD)
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 <dietzmann@brecht-schule.hamburg> >>> --- >>> 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 >>> +<Location /server-status> >>> + SetHandler server-status >>> + Require local >>> +</Location> >>> + >>> # EOF
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? 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 <dietzmann@brecht-schule.hamburg> >>>> --- >>>> 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 >>>> +<Location /server-status> >>>> + SetHandler server-status >>>> + Require local >>>> +</Location> >>>> + >>>> # EOF >
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 <dietzmann@brecht-schule.hamburg> >>>>> --- >>>>> 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 >>>>> +<Location /server-status> >>>>> + SetHandler server-status >>>>> + Require local >>>>> +</Location> >>>>> + >>>>> # EOF >
On 23.06.2026 11:21, Peer Dietzmann wrote: > Hi Matthias, Hi Peer, > 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. Ok, sorry for the noise, but in fact it was me who was a bit confused. As I wrote, its the weather to blame... ;-) I just wasn't sure if you'd like to push the third patch yourself. I'll prepare a patch and will send it in a few minutes, no problem. Best Matthias > 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 <dietzmann@brecht-schule.hamburg> >>>>>> --- >>>>>> 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 >>>>>> +<Location /server-status> >>>>>> + SetHandler server-status >>>>>> + Require local >>>>>> +</Location> >>>>>> + >>>>>> # EOF >>
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 +<Location /server-status> + SetHandler server-status + Require local +</Location> + # EOF