Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5376541
  • 博文数量: 1144
  • 博客积分: 11974
  • 博客等级: 上将
  • 技术积分: 12312
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-13 20:06
文章存档

2017年(2)

2016年(14)

2015年(10)

2014年(28)

2013年(23)

2012年(29)

2011年(53)

2010年(86)

2009年(83)

2008年(43)

2007年(153)

2006年(575)

2005年(45)

分类: LINUX

2006-10-20 07:44:31

在 2006-10-20五的 00:18 +0800,Shane Chrisp写道:
On Thu, 2006-10-19 at 12:09 -0400, wtechgroup wrote:
> What process makes the qmail logs clear out every so often? I want to
> keep track of things more and I can’t do that when the logs clear out
> so often.

Change your /service/qmail-smtpd/log/run to something like this...
(all on one line of course). The s5000000 is the size of the file before
it rotates.

#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
s5000000 /var/log/qmail/smtpd


>
> Also, does anyone know how to configure MRTG to be more advanced? I
> would like to analyze the /var/log/qmail/smtpd/current file to report
> numbers on simscan lines. I want to report the number of times simscan
> reports a clean message, rejects a message, tags a message and sends
> it as passthrough, and relays a message. Does anyone have any ideas?
> Thanks

Mine already does this. Unless something has changed, yours should do
to.

Shane

exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t s100000 n20 /var/log/qmail/qmail-pop3d 2>&1
Call the multilog program under the uid (user id) and gid (group id) which will call the qmail-pop3d program.
The t option means that the log file will have a timestamp on the beginning of the line (tai64n format).
s100000 : is the size of a log file (here 100 000 bytes). It is between 4096 and 16777215.
n20 : is the number of log file (here 20). At least 2.
then :

阅读(1099) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~