Daily Mail Report - missing data

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
User avatar
L. Mark Stone
Elite member
Elite member
Posts: 2028
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine
ZCS/ZD Version: 8.8.12 Network Edition
Contact:

Daily Mail Report - missing data

Postby L. Mark Stone » Wed Jan 06, 2010 3:46 pm

At the moment I have set DAILY_TIME to 23:55 as from the time stamps it seems that zmdailyreport isn't written to open zimbra.log.1.bz2 at all.
Will amend the bug report accordingly.
Thanks for prompting me to less /opt/zimbra/libexec/zmdailyreport; I should have checked that myself sooner!
All the best,

Mark


___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
Zeta Alliance http://www.zetalliance.org/
jrefl5
Outstanding Member
Outstanding Member
Posts: 203
Joined: Fri Sep 12, 2014 11:12 pm

Daily Mail Report - missing data

Postby jrefl5 » Wed Jan 06, 2010 4:06 pm

The way I read the code it is setup to open .gz files with unzip, you might try a local fix of .bz files with bunzip2 in ../libexec/zmdailyreport
User avatar
L. Mark Stone
Elite member
Elite member
Posts: 2028
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine
ZCS/ZD Version: 8.8.12 Network Edition
Contact:

Daily Mail Report - missing data

Postby L. Mark Stone » Wed Jan 06, 2010 4:33 pm

[quote user="jrefl5"]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.[/QUOTE]
Well, that's the problem then!!! Thanks!!!
SLES's log file rotation creates bz2 files, not gz files, so zmdailyreport never parses anything but /var/log/zimbra.log.
I've amended the bug report: Bug 43847 – Incorrect Log File Rotation Method Causing Missing Data in Daily Admin Report and Admin Console Stats Pages
But until Zimbra provides an official fix, we'll keep "DAILY_TIME" set to 23:55.
All the best,

Mark
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
Zeta Alliance http://www.zetalliance.org/
User avatar
L. Mark Stone
Elite member
Elite member
Posts: 2028
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine
ZCS/ZD Version: 8.8.12 Network Edition
Contact:

Daily Mail Report - missing data

Postby L. Mark Stone » Wed Jan 06, 2010 4:36 pm

[quote user="jrefl5"]The way I read the code it is setup to open .gz files with unzip, you might try a local fix of .bz files with bunzip2 in ../libexec/zmdailyreport[/QUOTE]
Looks like you were posting this while I was making my previous post; I'm not keen in principle to start hacking the zmdailyreport script on our own.
Hopefully Zimbra will publish the script changes in the bug report so we can implement the "official" fix manually then.
Again, thanks so much for your suggestion!
All the best,

Mark
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
Zeta Alliance http://www.zetalliance.org/
uxbod
Ambassador
Ambassador
Posts: 7811
Joined: Fri Sep 12, 2014 10:21 pm

Daily Mail Report - missing data

Postby uxbod » Wed Jan 06, 2010 4:56 pm

I would vote for real time stats; perhaps instead of parsing the logfiles the information was available via JMX we would be able to capture the stats to a central repository.

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 5 guests