Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #61 (permalink)  
Old 08-15-2010, 08:36 AM
Junior Member
 
Posts: 5
Default the same

hi guys, the trick with logrotate do not work for me, still have to restart rsyslog.
the bbugzilla says "solved on 6.0.7" but not for me.......

i hope anybody can help!!!!
Reply With Quote
  #62 (permalink)  
Old 08-18-2010, 06:40 AM
Junior Member
 
Posts: 5
Default At long Last

Thanks for no answer, but i resolved my problem.

my problem was on logrotate, so i saw some solutions like crontab to restart rsyslog, but the log info between logrotate and crontab(rsyslog)will be lost if you use this solution.

So, instead use the cron solution i've inserted the command to restart rsyslog into the postrotate section under /etc/logrotate.d/zimbra, like following:

#vim /etc/logrotate.d/zimbra

/var/log/zimbra.log {
daily
missingok
notifempty
create 0644 zimbra zimbra
postrotate
killall -HUP rsyslogd 2> /dev/null || true
su - zimbra -c "/opt/zimbra/bin/zmswatchctl restart" > /dev/null 2>&1 || true
/etc/init.d/rsyslog restart
endscript
compress
}

/var/log/zimbra-stats.log {
daily
missingok
notifempty
create 0644 zimbra zimbra
postrotate
killall -HUP rsyslogd 2> /dev/null || true
su - zimbra -c "/opt/zimbra/bin/zmlogswatchctl restart" > /dev/null 2>&1 || true
/etc/init.d/rsyslog restart
endscript
rotate 0
}

best greets from brazil!!
Reply With Quote
  #63 (permalink)  
Old 02-18-2011, 03:07 AM
Junior Member
 
Posts: 7
Default

i have rsyslog too and since my update from 6.0.10 to 7.0.0 i had the same problem. stats and status stopped working every day at 7:24 and i had to restart rsyslog. fortunately i found this thread and changed the lines of /var/log/zimbra.log and /var/log/zimbra-stats.log in file /etc/logrotate.d/zimbra to

Quote:
kill -HUP `cat /var/run/rsyslog*.pid 2> /dev/null` 2> /dev/null || true
as i did not have this problem before, it seems, the rsyslog patch (Bug 43081 – Server statistics fail after logrotate with rsyslogd) has been lost in 7.0.0.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.