[Debian-mobcom-maintainers] Bug#1050488: smstools: logcheck rule correction

Vaclav Ovsik vaclav.ovsik at gmail.com
Fri Aug 25 08:31:29 BST 2023


Package: smstools
Version: 3.1.21-4+b1
Severity: minor

Dear Maintainer,
I have logcheck in default setup. That is it process rsyslog files and
also process journal too. The journal records are a little difference -
pid number after smsd. This is rule working for me:

  liber:/etc/logcheck/ignore.d.server# cat smstools-local 
  ^([[:alpha:]]{3} [ :[:digit:]]{11}|[0-9T:.+-]{32}) [._[:alnum:]-]+ smsd(\[[0-9]+\])?: Writing stats file [0-9]+.[0-9]+$

Modified rule works for rsyslog and journal too:

  liber:/etc/logcheck/ignore.d.server# journalctl -b | grep -E -f smstools-local | tail -5
  Aug 25 05:00:00 liber smsd[516432]: Writing stats file 230825.050000
  Aug 25 06:00:00 liber smsd[516432]: Writing stats file 230825.060000
  Aug 25 07:00:00 liber smsd[516432]: Writing stats file 230825.070000
  Aug 25 08:00:00 liber smsd[516432]: Writing stats file 230825.080000
  Aug 25 09:00:00 liber smsd[516432]: Writing stats file 230825.090000
  liber:/etc/logcheck/ignore.d.server# grep -E -f smstools-local /var/log/syslog | tail -5
  2023-08-25T05:00:00.926804+02:00 liber smsd: Writing stats file 230825.050000
  2023-08-25T06:00:00.894419+02:00 liber smsd: Writing stats file 230825.060000
  2023-08-25T07:00:00.372074+02:00 liber smsd: Writing stats file 230825.070000
  2023-08-25T08:00:00.340548+02:00 liber smsd: Writing stats file 230825.080000
  2023-08-25T09:00:00.287804+02:00 liber smsd: Writing stats file 230825.090000

Please change logcheck rule file.
Thank you very much
Best Regards
-- 
Zito

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: 12.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-11-amd64 (SMP w/32 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages smstools depends on:
ii  adduser                    3.134
ii  debconf                    1.5.82
ii  libc6                      2.36-9+deb12u1
ii  libmm14                    1.4.2-7
ii  lsb-base                   11.6
ii  sysvinit-utils [lsb-base]  3.06-4
ii  ucf                        3.0043+nmu1

smstools recommends no packages.

smstools suggests no packages.

-- Configuration Files:
/etc/logcheck/ignore.d.server/smstools [Errno 13] Permission denied: '/etc/logcheck/ignore.d.server/smstools'

-- debconf information excluded



More information about the Debian-mobcom-maintainers mailing list