From patchwork Tue Jun 23 11:40:57 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Fischer X-Patchwork-Id: 9959 Return-Path: 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 4gl377427Gz3wkY for ; Tue, 23 Jun 2026 11:41:23 +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 4gl37725vdz6mg for ; Tue, 23 Jun 2026 11:41:23 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4gl3771PjSz30Mx for ; Tue, 23 Jun 2026 11:41:23 +0000 (UTC) X-Original-To: development@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 mail02.haj.ipfire.org (Postfix) with ESMTPS id 4gl3744pYLz2xLt for ; Tue, 23 Jun 2026 11:41:20 +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 4gl3741Xtnzbc; Tue, 23 Jun 2026 11:41:20 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1782214880; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=4He5tnC/eN6G4D1UuZ5WlnAe/MyOzeUHcgnbZZBzeHg=; b=4K4//AXbVgJJX4GtpPvl5A6dTPc/ElT0vCTUp6Aj4aqYNKosAZD59UOSwSinT0tN2wXRwO E5hLoHk1tO9McNBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1782214880; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=4He5tnC/eN6G4D1UuZ5WlnAe/MyOzeUHcgnbZZBzeHg=; b=tdFCmJO2CMBe9YjHvijCao4S1CeMD+bUw9IWhFmQ6cewU12Ls4pjZSEqIHBBxaWE6i4teE /LcL7F78t269MHH09YiklQKEhDYTKOOuuQ2o/RcdB7bjJ4bqhvg7EGFDJycuy+EmU0YTFH RFplAemhcnPsHx2lk3cuCEOEAu+VEeaya0aonetZbTngoS0aFaWNGxTSB3Jugak4MT6y+M NO1pxhUoyMFnEU02aJFO6LQrzkkn89QeA0kMlSTaTTXFFj/1gLST+AWPSEmA2QQmdN/Shi SIy4JmsaPwnpp+iEvontIChPSbc/bj3YKmCGNWl9NMFOY56Qp+3nZpBPcl3/pw== From: Matthias Fischer To: development@lists.ipfire.org Cc: Matthias Fischer , Peer Dietzmann Subject: [PATCH] obeservium-agent 24.4: Redirect apache status requests Date: Tue, 23 Jun 2026 13:40:57 +0200 Message-ID: <20260623114111.4315-1-matthias.fischer@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 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 Signed-off-by: Matthias Fischer --- 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