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
  #21 (permalink)  
Old 09-28-2007, 12:46 PM
Special Member
 
Posts: 169
Default

For what it's worth, I'll just post a "me too".

Fresh install of 4.5.7, not an upgrade
CentOS5

I did a yum install sysstat which seemed to make zmcontrol status show the stats service as running.

However, I still have the problems mentioned by everyone else, namely -

1. I only seem to get anything interesting in the Admin interface stats page if I run zmgengraphs and such by hand, and even then I don't seem to get everything.

2. I *NEVER* get any AS/AV stats. Sadly, that's really one of the main reasons I was upgrading to Zimbra was to improve spam blocking and to keep track of those kinds of stats better.

Surely they can't only put the fix in 5.0? An upgrade is far too dangerous and time-consuming for me to do right after upgrading to 4.5.7 just recently!
Reply With Quote
  #22 (permalink)  
Old 09-28-2007, 01:37 PM
Active Member
 
Posts: 40
Default

show 5.0 Beta zmstat don't work on openSUSE10.2
Reply With Quote
  #23 (permalink)  
Old 09-28-2007, 02:26 PM
Project Contributor
 
Posts: 136
Default Q&D Fix

It looks like a path problem. If you run:

/opt/zimbra/libexec/zmstatuslog

as user zimbra and then click "Refresh" on the Server Status screen, everything is OK (the zimbra.log also), but if the same command is triggered by cron it fails.

The solution (quick and dirty = Q&D) is to replace the zmsatuslog line in the crontab by:

Code:
*/2 * * * * . /opt/zimbra/.bashrc ; LANG=C /opt/zimbra/libexec/zmstatuslog
That's it! :-)

Carlos

Last edited by cvidal; 09-28-2007 at 02:28 PM..
Reply With Quote
  #24 (permalink)  
Old 09-29-2007, 09:36 AM
Loyal Member
 
Posts: 98
Default

Quote:
Originally Posted by cvidal View Post
It looks like a path problem. If you run:

/opt/zimbra/libexec/zmstatuslog

as user zimbra and then click "Refresh" on the Server Status screen, everything is OK (the zimbra.log also), but if the same command is triggered by cron it fails.

The solution (quick and dirty = Q&D) is to replace the zmsatuslog line in the crontab by:

Code:
*/2 * * * * . /opt/zimbra/.bashrc ; LANG=C /opt/zimbra/libexec/zmstatuslog
That's it! :-)

Carlos
Excellent workaround Carlos, I implemented it now and so far, so good Service is showing as running now in admin console. Tomorrow I will know if the stats are logging correctly..
Reply With Quote
  #25 (permalink)  
Old 09-29-2007, 05:31 PM
Loyal Member
 
Posts: 98
Default

Carlos' fix works!

But now that stats are running again, a new issue has been revealed: The most important (to me) tab, "Anti-Spam/Anti-Virus Activity" is not being populated.

There must be another glitch in 4.5.7 somewhere.

Can anyone tell me which script gathers data for this tab ?
Reply With Quote
  #26 (permalink)  
Old 09-30-2007, 04:15 AM
Project Contributor
 
Posts: 136
Default

Quote:
Originally Posted by centrex View Post
Carlos' fix works!

But now that stats are running again, a new issue has been revealed: The most important (to me) tab, "Anti-Spam/Anti-Virus Activity" is not being populated.

There must be another glitch in 4.5.7 somewhere.

Can anyone tell me which script gathers data for this tab ?
May be you don't receive any spam at all!

Jokes appart, the script responsible for generating the graphs is called zmgengraphs and is also triggered by cron every 10 minutes. Here the script behavior is the same when you run it manually, so the previous fix doesn't work in this case :-(

Looking at the code, I see the graphs are generating by querying MySQL (the zimbra_logger database). Looking at the database I see that the counts are in zero and no stats are grabbed, so the bug is in the data grabbing process (swatch?).

Looking in bugzilla, there is already an open item (bug 20578).

Carlos

Last edited by cvidal; 09-30-2007 at 04:52 AM..
Reply With Quote
  #27 (permalink)  
Old 09-30-2007, 05:11 AM
Loyal Member
 
Posts: 98
Default

Quote:
Originally Posted by cvidal View Post
Looking in bugzilla, there is already an open item (bug 20578).

Carlos
20578 indeed looks like my thing. I voted for it. Good find
Reply With Quote
  #28 (permalink)  
Old 10-03-2007, 05:12 AM
Advanced Member
 
Posts: 193
Default

Quote:
Originally Posted by cvidal View Post
It looks like a path problem. If you run:

/opt/zimbra/libexec/zmstatuslog

as user zimbra and then click "Refresh" on the Server Status screen, everything is OK (the zimbra.log also), but if the same command is triggered by cron it fails.

The solution (quick and dirty = Q&D) is to replace the zmsatuslog line in the crontab by:

Code:
*/2 * * * * . /opt/zimbra/.bashrc ; LANG=C /opt/zimbra/libexec/zmstatuslog
That's it! :-)

Carlos
Is this one specific to OS? I'm using Ubuntu 6.06, and I tried the same line, but it's not working.

Any idea?

Thanks in advance.
Reply With Quote
  #29 (permalink)  
Old 10-03-2007, 07:01 AM
Special Member
 
Posts: 120
Default ~/.bashrc

Hi,

I also came across the issue with cron / .bashrc .
I wrote some scripts that worked fine when run as user zimbra from the command line but did not work from cron. Adding a "source ~/.bashrc" as first line into this scripts fixed this. OS is as well Ubuntu 6.06.

Kind Regards
Andre
Reply With Quote
  #30 (permalink)  
Old 10-03-2007, 08:05 AM
Advanced Member
 
Posts: 193
Default

Quote:
Originally Posted by fisch09 View Post
Hi,

I also came across the issue with cron / .bashrc .
I wrote some scripts that worked fine when run as user zimbra from the command line but did not work from cron. Adding a "source ~/.bashrc" as first line into this scripts fixed this. OS is as well Ubuntu 6.06.

Kind Regards
Andre
Thanks for the post Andre.

Should I add that script to the crontab or to the .bashrc?

Many thanks again.
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.