From patchwork Sun Aug 15 07:05:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Fischer X-Patchwork-Id: 4627 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 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4GnSxf4nfZz3xHZ for ; Sun, 15 Aug 2021 07:05:58 +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 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4GnSxd1X65zt8; Sun, 15 Aug 2021 07:05:57 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4GnSxc6hf3z2xxY; Sun, 15 Aug 2021 07:05:56 +0000 (UTC) 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 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4GnSxb16KXz2xLY for ; Sun, 15 Aug 2021 07:05:55 +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 ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4GnSxZ2bpXzm3 for ; Sun, 15 Aug 2021 07:05:54 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1629011154; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc; bh=dg67B31b1eHEsZ6+iVQyu4fBs9PDQyOl1a9+j880ojo=; b=65qPygCFiGTRduzpEUA12SPVqB6DpH1+2kiFVvVdJMzH9AVxDxh9yMMP6+nAFgRRzg6LZ1 gRlb8FFSacgIMwAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1629011154; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc; bh=dg67B31b1eHEsZ6+iVQyu4fBs9PDQyOl1a9+j880ojo=; b=n3XKmw2MOehmFcrd8LSSahApTy2iM/f/VNu+gRQQhI6xOsBM3inX6c9KmfZivNtRqekZqS orgrglf9jtyHRLvC1wsvo59T7QasCqHCvKnYSOUHZ0WmXD3kSUtLSenExnwuSUVF0DevLc t8FUeKDHf7PebVEc44clC90nZZK+o89MCUv2n8zY85Ldc2X9wJYAMOk+OyHMPh8J7JtY5f Y4KotZq1i/EMKG9Bm92jaCUJhllHwSL6FI8gpvJMW5s484HCvr5mPUmJ74Vv8gZk/eSYLi jLipuTNAJP2ghTQkvJKaymNAxnQczdhwSBi+Bqpk7ScMNx2kP7XlRFt4URwg2A== From: Matthias Fischer To: development@lists.ipfire.org Subject: [PATCH] Patch 'log.dat' to show 'monit' messages in system logs Date: Sun, 15 Aug 2021 09:05:49 +0200 Message-Id: <20210815070549.1348-1-matthias.fischer@ipfire.org> X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Matthias Fischer Acked-by: Michael Tremer --- html/cgi-bin/logs.cgi/log.dat | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/cgi-bin/logs.cgi/log.dat b/html/cgi-bin/logs.cgi/log.dat index e467e1d2e..0d6c6722a 100644 --- a/html/cgi-bin/logs.cgi/log.dat +++ b/html/cgi-bin/logs.cgi/log.dat @@ -62,6 +62,7 @@ my %sections = ( 'ipfire' => '(ipfire: )', 'ipsec' => '(ipsec_[\w_]+: |pluto\[.*\]: |charon: |vpnwatch: )', 'kernel' => '(kernel: (?!DROP_))', + 'monit' => '(monit\[.*\]: )', 'ntp' => '(ntpd(?:ate)?\[.*\]: )', 'oinkmaster' => '(oinkmaster\[.*\]: )', 'openvpn' => '(openvpnserver\[.*\]: |.*n2n\[.*\]: )', @@ -91,6 +92,7 @@ my %trsections = ( 'ipfire' => 'IPFire', 'ipsec' => 'IPSec', 'kernel' => "$Lang::tr{'kernel'}", + 'monit' => 'Monit', 'ntp' => 'NTP', 'oinkmaster' => 'Oinkmaster', 'openvpn' => 'OpenVPN',