From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH] log.dat: Add NUT entry for System Logs - Fixes bug#12921 Date: Mon, 19 Sep 2022 15:15:18 +0200 Message-ID: <20220919131518.2779-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6027046346999911625==" List-Id: --===============6027046346999911625== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable - Also aligned all the code entries in %sections and %trsections Suggested-by: Michael Tested-by: Michael Signed-off-by: Adolf Belka --- html/cgi-bin/logs.cgi/log.dat | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/html/cgi-bin/logs.cgi/log.dat b/html/cgi-bin/logs.cgi/log.dat index 20f61d4ea..5fb1fcd5d 100644 --- a/html/cgi-bin/logs.cgi/log.dat +++ b/html/cgi-bin/logs.cgi/log.dat @@ -50,7 +50,7 @@ $cgiparams{'SECTION'} =3D 'ipfire'; =20 my %sections =3D ( 'auth' =3D> '(\w+\(pam_unix\)\[.*\]: )', - 'wio' =3D> '(wio:|wio\[.*\])', + 'wio' =3D> '(wio:|wio\[.*\])', 'captive' =3D> '(Captive:)', 'clamav' =3D> '(clamd\[.*\]: |freshclam\[.*\]: )', 'collectd' =3D> '(collectd\[.*\]: )', @@ -65,11 +65,12 @@ my %sections =3D ( 'kernel' =3D> '(kernel: (?!DROP_))', 'monit' =3D> '(monit\[.*?\]: )', 'ntp' =3D> '(ntpd(?:ate)?\[.*\]: )', - 'oinkmaster' =3D> '(oinkmaster\[.*\]: )', + 'nut' =3D> '(upsmon\[.*?\]: )', + 'oinkmaster' =3D> '(oinkmaster\[.*\]: )', 'openvpn' =3D> '(openvpnserver\[.*\]: |.*n2n\[.*\]: )', 'pakfire' =3D> '(pakfire:)', 'red' =3D> '(red:|pppd\[.*\]: |chat\[.*\]|pppoe\[.*\]|pptp\[.*\]|ppp= oa\[.*\]|pppoa3\[.*\]|pppoeci\[.*\]|ipppd|ipppd\[.*\]|kernel: ippp\d|kernel: = isdn.*|ibod\[.*\]|dhcpcd\[.*\]|modem_run\[.*\])', - 'samba' =3D> '(nmbd|smbd|winbind)\[\d+\]:', + 'samba' =3D> '(nmbd|smbd|winbind)\[\d+\]:', 'suricata' =3D> '(suricata: )', 'squid' =3D> '(squid\[.*\]: |squid: )', 'ssh' =3D> '(sshd(?:\(.*\))?\[.*\]: )', @@ -81,7 +82,7 @@ my %sections =3D ( # Translations for the %sections array. my %trsections =3D ( 'auth' =3D> "$Lang::tr{'loginlogout'}", - 'wio' =3D> 'Who Is Online?', + 'wio' =3D> 'Who Is Online?', 'captive' =3D> $Lang::tr{'Captive'}, 'clamav' =3D> 'ClamAV', 'collectd' =3D> 'Collectd', @@ -96,11 +97,12 @@ my %trsections =3D ( 'kernel' =3D> "$Lang::tr{'kernel'}", 'monit' =3D> 'Monit', 'ntp' =3D> 'NTP', - 'oinkmaster' =3D> 'Oinkmaster', + 'nut' =3D> 'NUT', + 'oinkmaster' =3D> 'Oinkmaster', 'openvpn' =3D> 'OpenVPN', 'pakfire' =3D> 'Pakfire', 'red' =3D> 'RED', - 'samba' =3D> $Lang::tr{'samba'}, + 'samba' =3D> $Lang::tr{'samba'}, 'suricata' =3D> "$Lang::tr{'intrusion detection'}", 'squid' =3D> "$Lang::tr{'web proxy'}", 'ssh' =3D> 'SSH', --=20 2.37.3 --===============6027046346999911625==--