From: Matthias Fischer <matthias.fischer@ipfire.org>
To: development@lists.ipfire.org
Cc: Matthias Fischer <matthias.fischer@ipfire.org>,
Peer Dietzmann <dietzmann@brecht-schule.hamburg>
Subject: [PATCH] obeservium-agent 24.4: Redirect apache status requests
Date: Tue, 23 Jun 2026 13:40:57 +0200 [thread overview]
Message-ID: <20260623114111.4315-1-matthias.fischer@ipfire.org> (raw)
This is the third patch of a patch series "to make Observium's
Agent able to pull Apache's status".
For details see:
https://lists.ipfire.org/development/20260622141442.374831-1-dietzmann@brecht-schule.hamburg/T/#u
https://lists.ipfire.org/development/32e4bd79-effd-4720-bb44-aa8eefda9a83@ipfire.org/T/#t
Suggested-by: Peer Dietzmann <dietzmann@brecht-schule.hamburg>
Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
---
lfs/observium-agent | 2 +-
.../redirect_apache_localhost_to_port_81.patch | 11 +++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)
create mode 100644 src/patches/observium/redirect_apache_localhost_to_port_81.patch
diff --git a/lfs/observium-agent b/lfs/observium-agent
index 86d7c5f47..b508e4ca6 100644
--- a/lfs/observium-agent
+++ b/lfs/observium-agent
@@ -81,6 +81,7 @@ $(subst %,%_BLAKE2,$(objects)) :
$(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/redirect_apache_localhost_to_port_81.patch
# Install xinet.d configuration
mkdir -pv /etc/xinetd.d
@@ -102,4 +103,3 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@rm -rf $(DIR_APP)
@$(POSTBUILD)
-
diff --git a/src/patches/observium/redirect_apache_localhost_to_port_81.patch b/src/patches/observium/redirect_apache_localhost_to_port_81.patch
new file mode 100644
index 000000000..f1a124054
--- /dev/null
+++ b/src/patches/observium/redirect_apache_localhost_to_port_81.patch
@@ -0,0 +1,11 @@
+--- 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
--
2.53.0
reply other threads:[~2026-06-23 11:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260623114111.4315-1-matthias.fischer@ipfire.org \
--to=matthias.fischer@ipfire.org \
--cc=development@lists.ipfire.org \
--cc=dietzmann@brecht-schule.hamburg \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox