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

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
  #1 (permalink)  
Old 11-19-2010, 06:29 PM
Member
 
Posts: 11
Default zmlogger, syslog, rsyslog and stats

Hi,

Perhaps this was discussed before and I couldn't find the thread in the forum. After migrating/upgraded from 32bit OE 5.0.16 (yes if it's not broke..) -> 64bit 6.0.9 on a different server, I notice the logging stats were not working. Zimbra was collecting them in /var/log/zimbra-stats.log but for some strange reason the stats were not updating in the Admin Console.

After poking around, I notice logger database was not updating and zmlogger (via zmlogswatch.out) was producing a lot of uninitialized value at line 564

Use of uninitialized value in string eq at /opt/zimbra/libexec/zmlogger line 564, <> line 1551.
Use of uninitialized value in string eq at /opt/zimbra/libexec/zmlogger line 564, <> line 1551.

Looking at the code, zmlogger is trying to match fields from zimbra-stats.log. What I found interesting was on my setup rsyslogd logged a slightly different way that what zmlogger is expecting. Hence the errors.

So instead of changing rsyslogd's format, I decided to see if zmlogger is expecting a syslog standard format.

I setup syslog on the server (fairly quick process). Executed the zmsetupsyslog script and restarted zimbra. As I expected, the errors went away, updates started happening in zmlogger's database (logger/db/data) and Admin console shows the correct status.

I hope this helps others who are in a similar situation as I was.

-Charles
zimbra 6.0.9, CentOS 5.5 x6.4
Reply With Quote
  #2 (permalink)  
Old 11-23-2010, 03:49 AM
Advanced Member
 
Posts: 198
Default

Quote:
Originally Posted by loopietky View Post
I setup syslog on the server (fairly quick process). Executed the zmsetupsyslog script and restarted zimbra. As I expected, the errors went away, updates started happening in zmlogger's database (logger/db/data) and Admin console shows the correct status.
-Charles
zimbra 6.0.9, CentOS 5.5 x6.4
Hi Charles,

Its a good one... but you don't need to restart the zimbra, you have restart only the zmstatctl service to make it work again.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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.