我的logwatch怪怪的

我的logwatch本來很正常,有一天他寄的mail內容突然變得怪怪的
只會回報Cron 和postfix 的內容,其他都不見了。
logwatch.conf 的內容我也檢查過了,跟書上差不多。
var/log裡面的資料我也看messages、secure,看起來也沒什麼問題。
我試過手動執行logwatc,/usr/sbin/logwatch
另外一台正常的主機跑得很順。
但是出毛病這一台會顯示
You have old files in your logwatch tmpdir (/var/cache/logwatch):
        logwatch.RMfLSoNa
The directories listed above were most likely created by a
logwatch run that failed to complete successfully.  If so, you
may delete these directories.

Mail version 8.1 6/6/93.  Type ? for help.
"/var/spool/mail/janeerg": 1 message 1 new
>N  1 robin.tsang@msa.hine  Fri Oct 12 15:42  40/1865  "▒u▒▒g▒ప▒B▒K▒O▒H▒C▒g▒▒]▒u▒~▒▒Ъ▒C▒ӴN▒ɡC▒쪫▒▒▒▒▒▒b▒ڽ▒ɡC"
Unknown command: "To"
Unknown command: "From"
Unknown command: "Subject"
.
.
.族繁不及備載
.
------=_NextPart_000_00BE_01C80CE6.A7C66E70--
Unknown command: "reverse"
At EOF
Referencing before 1
At EOF
At EOF
Referencing before 1
At EOF
At EOF
Unknown command: "Packages"
Unknown command: "pwlib"
Unknown command: "opal"
At EOF
Referencing before 1
At EOF
At EOF
Referencing before 1
At EOF
Unknown command: "Filesystem"
19: Invalid message number
48: Invalid message number
At EOF
At EOF
Referencing before 1
At EOF
At EOF
Unknown command: "######################"
At EOF
At EOF
Saved 1 message in mbox

我是用CentOS 5.0 logwatch是7.3-5

我已經不知道怎麼辦了,'請各位高手教我QQ

 

這是logwatch寄給我的資料,懇請各位高手幫忙Q_Q
/etc/cron.daily/0logwatch:

You have old files in your logwatch tmpdir (/var/cache/logwatch):
logwatch.RMfLSoNa
logwatch.LP6Ddmds
logwatch.AMVsFa8m
logwatch.ynQb4st8
logwatch.BfWsru9A
logwatch.YU6DQBwR
The directories listed above were most likely created by a
logwatch run that failed to complete successfully.  If so, you
may delete these directories.

No mail for root

 

 

 

試試砍了/var/cache/logwatch裡的資料...
再執行logwatch.

 

我已經把它清空了
清空的第一天回報
/etc/cron.daily/0logwatch:
No mail for root

清空的第二天
/etc/cron.daily/0logwatch:

You have old files in your logwatch tmpdir (/var/cache/logwatch):
logwatch.UUiYcKkf
The directories listed above were most likely created by a
logwatch run that failed to complete successfully.  If so, you
may delete these directories.

No mail for root

還是一樣QQ
 
 
 
 
最近把Fedora Core 6升級到Fedora 7,
有一台主機也是遇到同樣的問題,
後來查了logwatch.conf
發現這行
mailer = "/bin/mail"
跟其他台正常主機不同,
把它改成
mailer = "sendmail -t"
然後砍掉/var/cache/logwatch底下的所有資料..
就恢復正常了~~~
 

 

 

posted @ 2012-05-27 14:09  永哥  阅读(282)  评论(0)    收藏  举报