• Welcome to The Network People Support Forums. Please login or sign up.

log files no longer compressed

Started by D3s7, October 25, 2007, 12:27:37 AM

Previous topic - Next topic


I seem to recall this problem being discussed once before but I can't seem to find the link to it now.

I noticed that lately my log files in /var/log/mail/{year}/{month}/{day} are no longer being gzip'd.  It seems it has been doing this for quite some time.

I've checked the config settings and looked at the scripts but can't seem to see where the fault is.

I noticed it actually because my maillogs yesterday stopped working as the script looks for gz or bz2 files and mine are just raw.  That and I started looking to why all of a sudden we were losing massive amounts of diskspace.

Any suggestions on where/what to look for for this?


I figured this out BTW...

rrdutil calls maillogs to generate the statistic data for rrdutil.  maillogs is also responsible for compressing "yesterdays" files at this time.

Because I didn't have rrdutil running, the maillogs util was never being ran and the logs where never compressed.

installing rrdutil would fix this as well as adding a crontab to run these...

another solution would be to replace the line :
mailq           /usr/local/sbin/maillogs yesterday
in the /etc/mail/mailer.conf file with a shell script that ran maillogs for each component FIRST then the yesterday command.