Your message dated Sun, 29 Dec 2024 21:48:53 +0000
with message-id
<caj3buorismatfsxdby8n88yp-g-ymzojq-y6pp1swqhse2g...@mail.gmail.com>
and subject line Re: I was running my own syslog-summary
has caused the Debian Bug report #198762,
regarding remove support for syslog-summary which is dead
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
198762: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=198762
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: logcheck
Version: 1.3.20
Severity: normal
Tags: patch
Dear Maintainer,
Now that syslog-summary package has disappeared from unstable and
testing, remove support of it in logcheck.
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.0-2-amd64 (SMP w/4 CPU threads)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages logcheck depends on:
ii adduser 3.118
ii cron [cron-daemon] 3.0pl1-136
ii lockfile-progs 0.1.18
ii logtail 1.3.20
ii mime-construct 1.11+nmu3
ii postfix [mail-transport-agent] 3.5.6-1
ii rsyslog [system-log-daemon] 8.2012.0-1
Versions of packages logcheck recommends:
ii logcheck-database 1.3.20
Versions of packages logcheck suggests:
pn syslog-summary <none>
-- Configuration Files:
/etc/logcheck/logcheck.conf [Errno 13] Permission denied:
'/etc/logcheck/logcheck.conf'
/etc/logcheck/logcheck.logfiles [Errno 13] Permission denied:
'/etc/logcheck/logcheck.logfiles'
-- no debconf information
>From 2be0f96215198ceca66cf3819c310936c0a30ea9 Mon Sep 17 00:00:00 2001
From: Yasuhiro Kimura <[email protected]>
Date: Fri, 29 Jan 2021 19:08:21 +0900
Subject: [PATCH] Remove support of syslog-summary package.
Now that syslog-summary package has disappeared from unstable and
testing, remove support of it in logcheck.
---
debian/control | 1 -
docs/logcheck.sgml | 7 -------
etc/logcheck.conf | 6 ------
src/logcheck | 23 +++++------------------
4 files changed, 5 insertions(+), 32 deletions(-)
diff --git a/debian/control b/debian/control
index ea1a970..3dffbbd 100644
--- a/debian/control
+++ b/debian/control
@@ -13,7 +13,6 @@ Package: logcheck
Architecture: all
Depends: adduser, default-mta | mail-transport-agent, cron | cron-daemon,
rsyslog | system-log-daemon, mime-construct, logtail (>= 1.2.59),
lockfile-progs, ${misc:Depends}
Recommends: logcheck-database (>= ${source:Version})
-Suggests: syslog-summary
Description: mails anomalies in the system logfiles to the administrator
Logcheck helps spot problems and security violations in your logfiles
automatically and will send the results to you in e-mail.
diff --git a/docs/logcheck.sgml b/docs/logcheck.sgml
index 9871fc0..e347dac 100644
--- a/docs/logcheck.sgml
+++ b/docs/logcheck.sgml
@@ -218,13 +218,6 @@ manpage.1: manpage.sgml
<para>Do not remove the TMPDIR.</para>
</listitem>
</varlistentry>
- <varlistentry>
- <term><option>-u</option>
- </term>
- <listitem>
- <para>Enable syslog-summary.</para>
- </listitem>
- </varlistentry>
<varlistentry>
<term><option>-v</option>
</term>
diff --git a/etc/logcheck.conf b/etc/logcheck.conf
index c49ca05..5a0207a 100644
--- a/etc/logcheck.conf
+++ b/etc/logcheck.conf
@@ -55,12 +55,6 @@ FQDN=1
#RULEDIR="/etc/logcheck"
-# Controls if syslog-summary is run over each section.
-# Alternatively, set to "1" to enable extra summary.
-# HINT: syslog-summary needs to be installed.
-
-#SYSLOGSUMMARY=0
-
# Controls Subject: lines on logcheck reports:
#ATTACKSUBJECT="Security Alerts"
diff --git a/src/logcheck b/src/logcheck
index 091b40e..b998fa7 100755
--- a/src/logcheck
+++ b/src/logcheck
@@ -47,7 +47,7 @@ SECURITY=0
ATTACK=0
# Set the getopts string
-GETOPTS="c:dhH:l:L:D:m:opr:RsS:tTuvw"
+GETOPTS="c:dhH:l:L:D:m:opr:RsS:tTvw"
# Get the details for the email message
DATE="$(date +'%Y-%m-%d %H:%M %z')"
@@ -77,7 +77,6 @@ LOGFILES_LIST_D="/etc/logcheck/logcheck.logfiles.d"
LOGFILE_FALLBACK="/var/log/syslog"
LOGTAIL="/usr/sbin/logtail2"
CAT="/bin/cat"
-SYSLOG_SUMMARY="/usr/bin/syslog-summary"
# Set the options defaults
INTRO=1
@@ -90,7 +89,6 @@ REBOOT=0
FQDN=0
SORTUNIQ=0
SUPPORT_CRACKING_IGNORE=0
-SYSLOGSUMMARY=0
LOCKDIR=/run/lock/logcheck
LOCKFILE="$LOCKDIR/logcheck"
@@ -246,19 +244,9 @@ report() {
if [ -s "$TMPDIR/checked" ]; then
printheader "$*" >> "$TMPDIR/report" \
|| error "Could not append to report."
- if [ "$SYSLOGSUMMARY" -eq 1 ] && [ -x "$SYSLOG_SUMMARY" ]; then
- debug "report: running syslog-summary - $*"
- $SYSLOG_SUMMARY "$TMPDIR/checked" | \
- egrep -v "^Summarizing " | cat >> "$TMPDIR/report" \
- || error "Could not append to report."
- else
- if [ "$SYSLOGSUMMARY" -eq 1 ] && [ ! -x "$SYSLOG_SUMMARY" ]; then
- debug "report : WARNING : can't exec $SYSLOG_SUMMARY. Running
without summary"
- fi
- debug "report: cat'ing - $*"
- cat "$TMPDIR/checked" >> "$TMPDIR/report" \
- || error "Could not append to report."
- fi
+ debug "report: cat'ing - $*"
+ cat "$TMPDIR/checked" >> "$TMPDIR/report" \
+ || error "Could not append to report."
echo >> "$TMPDIR/report" \
|| error "Could not append to report."
return 0
@@ -450,7 +438,7 @@ usage() {
debug "usage: Printing usage and exiting"
cat<<EOF
usage: logcheck [-c CFG] [-d] [-h] [-H HOST] [-l LOG] [-L CFG] [-D DIR] [-m
MAIL] [-o]
- [-r DIR] [-s|-p|-w] [-R] [-S DIR] [-t] [-T] [-u]
+ [-r DIR] [-s|-p|-w] [-R] [-S DIR] [-t] [-T]
-c CFG = override default configuration file
-d = debug mode
-h = print this usage information and exit
@@ -467,7 +455,6 @@ usage: logcheck [-c CFG] [-d] [-h] [-H HOST] [-l LOG] [-L
CFG] [-D DIR] [-m MAIL
-S DIR = override default state directory
-t = testing mode, don't update the logfile offsets
-T = do not remove the TMPDIR
- -u = enable syslog-summary
-v = print version
-w = use the "workstation" runlevel
EOF
--
2.30.0
--- End Message ---
--- Begin Message ---
[snip: bugs that ended up being: remove support for running
syslog-summary from logcheck, dating back to ~ 2020!]
[ snip: discussion of local version of syslog-summary]
> https://git.alphanet.ch/gitweb/?p=various;a=blob;f=logcheck/syslog-summary;h=dcfe82b9ab2065309dc39f929d0d5c9055c75f55;hb=HEAD
I only just spotted this - on 11 Nov 2024 (approx 3 days after the
last message in this bug!), a new syslog-summary
was uploaded to debian (see https://tracker.debian.org/pkg/syslog-summary).
So im closing this bug against logcheck which asked to remove the
support - luckily no-one actioned it in the last few years!
If anyone reading thinks there is something to do in logcheck, please
open a new bug!
I'm cc'ing the syslog-summary maintainers in case they want to check
out marc's version, linked above
--- End Message ---