]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
obeservium-agent 24.4: Redirect apache status requests
authorMatthias Fischer <matthias.fischer@ipfire.org>
Tue, 23 Jun 2026 11:40:57 +0000 (13:40 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 8 Jul 2026 10:28:31 +0000 (10:28 +0000)
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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/observium-agent
src/patches/observium/redirect_apache_localhost_to_port_81.patch [new file with mode: 0644]

index 86d7c5f470c4c6daf898937d84babdf6bc7baa8f..b508e4ca6f9a0061c8a917ba35dcd559b89f9efb 100644 (file)
@@ -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 (file)
index 0000000..f1a1240
--- /dev/null
@@ -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