Patch 'log.dat' to show 'monit' messages in system logs

Message ID 20210815070549.1348-1-matthias.fischer@ipfire.org
State New
Headers show
Series Patch 'log.dat' to show 'monit' messages in system logs | expand

Commit Message

Matthias Fischer Aug. 15, 2021, 7:05 a.m. UTC
Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
---
 html/cgi-bin/logs.cgi/log.dat | 2 ++
 1 file changed, 2 insertions(+)

Comments

Michael Tremer Aug. 16, 2021, 9:38 a.m. UTC | #1
Acked-by: Michael Tremer <michael.tremer@ipfire.org>

> On 15 Aug 2021, at 08:05, Matthias Fischer <matthias.fischer@ipfire.org> wrote:
> 
> Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
> ---
> 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',
> -- 
> 2.18.0
>

Patch

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',