pflogsumm is a log analyzer/summarizer for the Postfix MTA. It is

designed to provide an over-view of Postfix activity, with just enough
detail to give the administrator a "heads up" for potential trouble spots.

pflogsumm generates summaries and, in some cases, detailed reports of mail
server traffic volumes, rejected and bounced email, and server warnings,
errors and panics.
This commit is contained in:
jakob 2002-12-30 19:36:39 +00:00
parent 7eb01ad0ae
commit 9967e6dd5e
5 changed files with 105 additions and 0 deletions

34
mail/pflogsumm/Makefile Normal file
View File

@ -0,0 +1,34 @@
# $OpenBSD: Makefile,v 1.1.1.1 2002/12/30 19:36:39 jakob Exp $
COMMENT= Postfix log entry summarizer
VERSION= 1.0.6
DISTNAME= pflogsumm-${VERSION}
CATEGORIES= mail
MASTER_SITES+= http://jimsun.linxnet.com/downloads/
HOMEPAGE= http://jimsun.linxnet.com/postfix_contrib.html
MAINTAINER= Jakob Schlyter <jakob@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
NO_REGRESS= Yes
RUN_DEPENDS= :p5-Date-Calc->=5.3:devel/p5-Date-Calc
do-build:
(cd ${WRKSRC}; \
rm -f pflogsumm.1; \
pod2man pflogsumm.pl >pflogsumm.1)
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/pflogsumm.pl ${PREFIX}/bin/pflogsumm
${INSTALL_MAN} ${WRKSRC}/pflogsumm.1 ${PREFIX}/man/man1
.include <bsd.port.mk>

3
mail/pflogsumm/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (pflogsumm-1.0.6.tar.gz) = a006cbe46393369f3169cc72e77ab163
RMD160 (pflogsumm-1.0.6.tar.gz) = 09070fa302fc2cd7ba5a9d14d8878e7b125661f5
SHA1 (pflogsumm-1.0.6.tar.gz) = 6eb7ba1ef59cb09e6279096be1125baa7eeaada6

View File

@ -0,0 +1,55 @@
$OpenBSD: patch-pflogsumm_pl,v 1.1.1.1 2002/12/30 19:36:39 jakob Exp $
--- pflogsumm.pl.orig Mon Dec 30 20:20:40 2002
+++ pflogsumm.pl Mon Dec 30 20:21:25 2002
@@ -4,20 +4,20 @@ eval 'exec perl -S $0 "$@"'
=head1 NAME
-pflogsumm.pl - Produce Postfix MTA logfile summary
+pflogsumm - Produce Postfix MTA logfile summary
Copyright (C) 1998-2002 by James S. Seymour, Release 1.0.6.
=head1 SYNOPSIS
- pflogsumm.pl -[eq] [-d <today|yesterday>] [-h <cnt>] [-u <cnt>]
+ pflogsumm -[eq] [-d <today|yesterday>] [-h <cnt>] [-u <cnt>]
[--verp_mung[=<n>]] [--verbose_msg_detail] [--iso_date_time]
[-m|--uucp_mung] [-i|--ignore_case] [--smtpd_stats] [--mailq]
[--problems_first] [--rej_add_from] [--no_bounce_detail]
[--no_deferral_detail] [--no_reject_detail] [--zero_fill]
[file1 [filen]]
- pflogsumm.pl -[help|version]
+ pflogsumm -[help|version]
If no file(s) specified, reads from stdin. Output is to stdout.
@@ -183,15 +183,15 @@ Copyright (C) 1998-2002 by James S. Seym
Produce a report of previous day's activities:
- pflogsumm.pl -d yesterday /var/log/maillog
+ pflogsumm -d yesterday /var/log/maillog
A report of prior week's activities (after logs rotated):
- pflogsumm.pl /var/log/maillog.0
+ pflogsumm /var/log/maillog.0
What's happened so far today:
- pflogsumm.pl -d today /var/log/maillog
+ pflogsumm -d today /var/log/maillog
Crontab entry to generate a report of the previous day's activity
at 10 minutes after midnight.
@@ -384,7 +384,7 @@ $smtpdPerHr[15] = [0,0,0]; $smtpdPerHr[1
$smtpdPerHr[18] = [0,0,0]; $smtpdPerHr[19] = [0,0,0]; $smtpdPerHr[20] = [0,0,0];
$smtpdPerHr[21] = [0,0,0]; $smtpdPerHr[22] = [0,0,0]; $smtpdPerHr[23] = [0,0,0];
-$progName = "pflogsumm.pl";
+$progName = "pflogsumm";
$usageMsg =
"usage: $progName -[eq] [-d <today|yesterday>] [-h <cnt>] [-u <cnt>]
[--verp_mung[=<n>]] [--verbose_msg_detail] [--iso_date_time]

10
mail/pflogsumm/pkg/DESCR Normal file
View File

@ -0,0 +1,10 @@
pflogsumm is a log analyzer/summarizer for the Postfix MTA. It is
designed to provide an over-view of Postfix activity, with just enough
detail to give the administrator a "heads up" for potential trouble spots.
pflogsumm generates summaries and, in some cases, detailed reports of mail
server traffic volumes, rejected and bounced email, and server warnings,
errors and panics.
WWW: ${HOMEPAGE}

3
mail/pflogsumm/pkg/PLIST Normal file
View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2002/12/30 19:36:39 jakob Exp $
bin/pflogsumm
man/man1/pflogsumm.1