#1  
Old 3rd September 2008, 10:46
ADM ADM is offline
Junior Member
 
Join Date: Apr 2007
Posts: 23
Thanks: 1
Thanked 0 Times in 0 Posts
Default pflogsumm

Hello

I have a Debian etch perfect setup with:
postfix 2.3.8-2+etch1
pflogsumm 1.1.0-3
ISPConfig v2.2.18

My problem is the pflogsumm send me incomplete results.

It sends me reports for very few emails, as you can see:


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

3 received
2 delivered
0 forwarded
0 deferred
0 bounced
16 rejected (88%)
0 reject warnings
0 held
0 discarded (0%)

But the servers processes 20.000 emails/day

I have this script in /etc/cron.daily
#!/bin/sh
if [ -x /usr/sbin/pflogsumm ]; then
/usr/sbin/pflogsumm -d yesterday --problems_first /var/log/mail.log
fi

I also tryed to rename it to 000pflogsumm instead of pflogsumm so it starts before 00logwatch

This is my etc/crontab
# /etc/crontab: system-wide crontab
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#

Also this is my crontab -l
mega:/etc/cron.daily# crontab -l
30 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/mail_logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/cleanup.php &> /dev/null
0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null
0,30 * * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php &> /dev/null
15 3,15 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/quota_msg.php &> /dev/null
40 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/traffic.php &> /dev/null
05 02 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php &> /dev/null


# ls -la /etc/logrotate.d/
drwxr-xr-x 2 root root 4096 2008-09-02 10:51 .
drwxr-xr-x 74 root root 4096 2008-09-02 12:42 ..
-rw-r--r-- 1 root root 137 2006-01-15 22:24 acpid
-rw-r--r-- 1 root root 240 2007-03-27 15:21 apache2
-rw-r--r-- 1 root root 79 2006-10-27 06:49 aptitude
-rw-r--r-- 1 root root 111 2007-01-02 00:02 dpkg
-rw-r--r-- 1 root root 869 2007-03-18 22:05 mysql-server


Any hints will be appreciated!
Best regards

Last edited by ADM; 3rd September 2008 at 10:49.
Reply With Quote
Sponsored Links
  #2  
Old 4th September 2008, 15:15
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
 
Default

I think the problem might be that ISPConfig rotates the mail log at 23:59h, so maybe there's not much in the new mail log when the pflogsumm script runs.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pflogsumm issues Chumley HOWTO-Related Questions 20 25th July 2011 14:01
Postfix Monitoring With Mailgraph And pflogsumm WaveQam HOWTO-Related Questions 28 5th December 2007 17:24
Postfix Monitoring with Mailgraph And pflogsumm On Debian Etch kdclaver Installation/Configuration 3 27th October 2007 16:17
Postfix Monitoring With Mailgraph And pflogsumm On Debian Etch klonos HOWTO-Related Questions 13 31st August 2007 12:43
gunzip and Postfix Monitoring With Mailgraph And pflogsumm mr88talent HOWTO-Related Questions 1 5th October 2006 17:08


All times are GMT +2. The time now is 10:08.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.