LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-26-2004, 02:25 PM   #1
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Rep: Reputation: 30
pflogsumm generates zeroes for results


i am running a mail log script called pflogsumm (without smtpd stats) on a fedora core 2 with the pearl rpm perl-5.8.0-88.3. i installed per the instructions and have attempted to run the script with zero displayed in all report results. specifically, i used the commands as follows:

1. /usr/local/bin/pflogsumm -d yesterday /var/log/syslog

and

2. /usr/local/bin/pflogsumm -d today /var/log/maillog

i have reviewed my logs and they have "postfix/" entries.

example maillog
Sep 26 13:18:07 testy postfix/smtpd[14728]: disconnect from bay13-f26.bay13.hotmail.com[64.4.31.26]

example syslog:

Sep 23 16:01:33 testy postfix/smtpd[2394]: warning: numeric result 65.182.130.51 in address->name lookup for 65.182.130.51

sample output (partial)

Postfix log summaries for Sep 25

Grand Totals
------------
messages

0 received
0 delivered
0 forwarded
0 deferred
0 bounced
0 rejected (0%)
0 reject warnings
0 held
0 discarded (0%)

0 bytes received
0 bytes delivered
0 senders
0 sending hosts/domains
0 recipients
0 recipient hosts/domains



can you point me in the right direction for a solution? thanks
 
Old 09-29-2004, 03:29 PM   #2
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Original Poster
Rep: Reputation: 30
/ Date::Calc Module

this is a redhat / fedora issue related to a setting in /etc/sysconfig/i18n

To solve:

vi: /etc/sysconfig/i18n

replace "en_US.UTF-8" with "en_US" and save file

logout and then log in and all should be well.

This is a known issue. I thought I had "fixed" this issue but my edit did not take effect apparently. I discovered this when I attempted to install the Date::Calc Module and got a bunch of errors during "make test" referring to malformed en_US.UTF-8. When I checked /etc/sysconfig/i18n again, i corrected the error. Next, installing the Date::Calc Module went correctly (except for four skipped tests) and reinstalled pflogsumm with the smtpd stats enabled and all is well.

Then add the following entries to your crontab (based on default redhat settings) and your email administration just got simple.

crontab -e

10 0 * * * /usr/local/bin/pflogsumm -d yesterday /var/log/maillog | mail -s "Mail Report" you@yourdomain.com

Many thanks to the pflogsumm author JIMSUN

BY THE WAY: I LATER DISCOVERED THE EASIEST WAY TO TAKE CARE OF THE DEPENDENCY ISSUE FOR FEDORA USERS IS TO JUST INSTALL THROUGH YUM
yum install postfix-*
Unable to find pid
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - i386 - Base
Server: Fedora Core 2 - i386 - Released Updates
Finding updated packages
Downloading needed headers
Resolving dependencies
..Dependencies resolved
I will do the following:
[install: postfix-pflogsumm 2:2.0.18-4.i386]
I will install/upgrade these to satisfy the dependencies:
[deps: perl-Bit-Vector 6.3-2.i386]
[deps: perl-Date-Calc 5.3-8.i386]
Is this ok [y/N]: y

if you install the Fedora RPM, then your crontab -e entry is slightly different:
10 0 * * * /usr/sbin/pflogsumm -d yesterday /var/log/maillog | mail -s "Mail Report" you@primary.com


Last edited by rioguia; 07-26-2005 at 10:39 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mkdosfs generates invalid boot sector HadroLepton Linux - Newbie 6 10-28-2010 12:26 PM
pflogsumm can't locate Date/Calc.pm in @INC robadawb Linux - Software 1 01-23-2009 01:00 PM
Which package generates libesd.so.2 satimis *BSD 5 05-05-2004 03:25 AM
program that generates relative paths? TheMaXX Linux - Software 1 10-21-2003 02:17 PM
MPlayer only generates png, no x output delling81 Linux - Software 1 10-03-2003 01:53 PM


All times are GMT -5. The time now is 06:59 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration