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 01-05-2010, 02:28 PM
Intermediate Member
 
Posts: 19
Default Daily Mail Report - missing data

My daily mail report seems to be working only in the afternoon.

The per hour traffic summary does not begin until 2PM.

See attachment

Anyone have any thoughts?

Thanks
Todd
Attached Images
File Type: png Picture 56.png (23.8 KB, 62 views)
Reply With Quote
  #2 (permalink)  
Old 01-06-2010, 05:48 AM
Moderator
 
Posts: 1,209
Default

FWIW we are seeing the exact same thing, except the start-of-data-time for us is different.

We've been busy sorting out more pressing issues from our recent Zimbra upgrade (see ), so haven't gotten to this problem fully just yet since we only got stats back working properly yesterday.

So far, what we see is that the logs /var/log/zimbra*.log seem to be getting rotated around 6:15pm our time. Our server's hardware clocks are set to UTC, and our Time Zone on the servers (and in Zimbra) is set to Eastern, i.e. GMT -4 (daylight savings time).

We'll look at the logrotation scripts and confirm system time later and report back here whatever we find.

Curious what time zone your system is configured for and if the number of hours difference in our respective start-of-data-times in the daily mail report matches exactly with the hours difference between our two time zones.

Hope that helps,
Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
Reply With Quote
  #3 (permalink)  
Old 01-06-2010, 07:06 AM
Intermediate Member
 
Posts: 19
Default

Thanks for the info, I think you may be onto something with the log rotation times. I see that you are also using SLES 10x64. We are in Central time, so if you are seeing a one hour difference in the start of your hourly info then I think we have a good place to be looking. This is also a low priority for us, but still looking at it as time permits.

Thanks
Todd
Reply With Quote
  #4 (permalink)  
Old 01-06-2010, 07:52 AM
Moderator
 
Posts: 1,209
Default

I think I have identified the root cause of this issue...

I looked at the time stamps for the /var/log/*.bz2 files on about a dozen SLES systems this morning (some Zimbra hosts, some not), and saw that the log files being rotated by scripts in /etc/cron.daily had time stamps of roughly on the hour and fifteen/thirty/forty-five minutes after the hour -- and that the hours were all pretty random. There was no correlation between time zones at all.

I also noticed that the time of day the files were rotated changed by an hour when Daylight Savings Time kicked in.

The new Zimbra logging system as I understand it, including the daily mail report and statistics in the Admin console, relies on data in /var/log/zimbra.log and /var/log/zimbra-stats.log being available to parse.

When these log files are rotated in the middle of the day, the data in the daily mail report and stats in the Admin Console is incomplete.

So why are these log files being rotated by scripts in /etc/cron.daily on such a seemingly random basis?

Because unless the "DAILY_TIME" parameter in /etc/sysconfig/cron is set to a specific time, cron.daily is run by default at the next 15 minute interval past the last boot time hour -- until the server is once again rebooted.

On all the SLES systems I looked at, "DAILY_TIME" was blank.

Consequently, /etc/cron.daily/zimbra is being executed each day based on the last boot time of the server.

This is not what Zimbra I believe intends so I have filed a bug report here: Bug 43847 – Incorrect Log File Rotation Method Causing Missing Data in Daily Admin Report and Admin Console Stats Pages

Would be interesting if admins using other distros could comment on their setups here as well...

Hope that helps,
Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
Reply With Quote
  #5 (permalink)  
Old 01-06-2010, 09:07 AM
Moderator
 
Posts: 7,928
Default

Mark,

on CentOS it is controller by /etc/crontab
Code:
02 4 * * * root run-parts /etc/cron.daily
__________________
Reply With Quote
  #6 (permalink)  
Old 01-06-2010, 10:07 AM
Moderator
 
Posts: 1,209
Default

Quote:
Originally Posted by uxbod View Post
Mark,

on CentOS it is controller by /etc/crontab
Code:
02 4 * * * root run-parts /etc/cron.daily
Thanks for posting that!

So, are there time periods in your daily mail report that are missing data?

All the best,
Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
Reply With Quote
  #7 (permalink)  
Old 01-06-2010, 10:16 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Quote:
Originally Posted by LMStone View Post
So, are there time periods in your daily mail report that are missing data?
Not on my CentOS server, there is received mail in all the time slots.
__________________
Regards


Bill
Reply With Quote
  #8 (permalink)  
Old 01-06-2010, 10:22 AM
Moderator
 
Posts: 1,209
Default

Quote:
Originally Posted by phoenix View Post
Not on my CentOS server, there is received mail in all the time slots.
Well, we'll see what happens in two days then!

Thanks Bill,
Mark

P.S. Unsupported OS eh?
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
Reply With Quote
  #9 (permalink)  
Old 01-06-2010, 10:25 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Quote:
Originally Posted by LMStone View Post
P.S. Unsupported OS eh?
Of course but I don't get support for my installation anyway.
__________________
Regards


Bill
Reply With Quote
  #10 (permalink)  
Old 01-06-2010, 01:15 PM
Advanced Member
 
Posts: 205
Default

Like uxbod, and phoenix I don't have any problems, but then I'm also on CENTOS.

you might want to try to set a reasonable time in "DAILY_TIME".

the zmdailyreport attempts to open both the current zimbra.log, and zimbra.log.1 or zimbra.log.1.gz so it should be able to get the prior day.

Last edited by jrefl5; 01-06-2010 at 01:25 PM..
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.