Package: logcheck Version: Version: 1.2.3 Severity: wishlist The subject line is not correct, if any of these options 'ATTACKSUBJECT', 'SECURITYSUBJECT' and 'EVENTSSUBJECT' are combined in a report. The subject line only include the first event of a report. This is not so good for report mail filtering. The patch in the attachment correct this. -- Bill Gates said: "It requires Windows XP or better", so I installed Linux. -------------- next part -------------- --- logcheck 2005-04-19 17:58:39.000000000 +0200 +++ /usr/sbin/logcheck 2005-12-26 16:04:01.000000000 +0100 @@ -1,4 +1,4 @@ -#!/bin/bash +#! /bin/bash # # Copyright (C) 2004-2005 Debian Logcheck Team # <logcheck-devel at alioth.lists.debian.org> @@ -6,6 +6,8 @@ # Copyright (C) 1999-2002 Rene Mayrhofer <rmayr at debian.org> # Copyright (C) 1996-1997 Craig Rowland <crowland at psionic.com> +# Modified by Markus Nass <generalstone at gmx.net> + # This file is part of Logcheck # Logcheck is free software; you can redistribute it and/or modify @@ -740,10 +742,21 @@ fi # If there are results, mail them to sysadmin +SUBJECT="" + if [ $ATTACK -eq 1 ]; then - sendreport "$ATTACKSUBJECT" + SUBJECT="$ATTACKSUBJECT" +fi +if [[ $SUBJECT != "" ]] && [ $SECURITY -eq 1 ]; then + SUBJECT="$SUBJECT, $SECURITYSUBJECT" elif [ $SECURITY -eq 1 ]; then - sendreport "$SECURITYSUBJECT" + SUBJECT="$SECURITYSUBJECT" +fi +if [[ $SUBJECT != "" ]] && [ $SYSTEM -eq 1 ]; then + SUBJECT="$SUBJECT, $EVENTSSUBJECT" elif [ $SYSTEM -eq 1 ]; then - sendreport "$EVENTSSUBJECT" + SUBJECT="$EVENTSSUBJECT" +fi +if [[ $SUBJECT != "" ]]; then + sendreport "$SUBJECT" fi -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20051226/a05df06b/attachment.pgp
maximilian attems
2006-Jan-02 13:09 UTC
Bug#344832: [Logcheck-devel] Bug#344832: correct subject header
tags 344832 moreinfo stop On Mon, 26 Dec 2005, General Stone wrote:> The subject line is not correct, if any of these options > 'ATTACKSUBJECT', 'SECURITYSUBJECT' and 'EVENTSSUBJECT' are combined in > a report. The subject line only include the first event of a report. > This is not so good for report mail filtering. The patch in the > attachment correct this.please provide the noncorrect subject line and what is your wish? reading the switches it seems pretty clear that the highest alerts wins as expeceted.> +# Modified by Markus Nass <generalstone at gmx.net> > + > # This file is part of Logchecka bit bold for a 4 line patch. -- maks
Debian Bug Tracking System
2006-Jan-02 13:18 UTC
Processed: Re: [Logcheck-devel] Bug#344832: correct subject header
Processing commands for control at bugs.debian.org:> tags 344832 moreinfoBug#344832: correct subject header There were no tags set. Tags added: moreinfo> stopStopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database)
Apparently Analagous Threads
- Bug#344832: (fwd) Re: Bug#344832: correct subject header
- Convert data into zoo object using Performance analytics package
- Convert data into zoo object using Performance analytics package
- Convert data into zoo object using Performance analytics package
- Puppet Augeas Plugin