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 Display Modes
  #21 (permalink)  
Old 01-26-2010, 07:30 AM
Starter Member
 
Posts: 1
Default

I have found that the zimbra part of syslog-ng.conf have some errors.

The "source zimbra_src {" statement have syntax error.
So fist I corrected this line so I could start syslog-ng, but there was still status problem, for ex. the red X.

what I did find was that if I remake/delete the "source zimbra_src {" line.

and change the log line from:
log { source(zimbra_src);

to
log { source(s_all);

s_all = is the default source profile in my configfile

And then I did restart of syslog-ng
/etc/init.d/syslog-ng restart

And now i get "status"-text in the log file.

grep "STATUS" /var/log/zimbra-stats.log | grep stats | head -n10

and the red X has change to blue makers now.

I hope this will also help you.

Regards,
//Roger
Reply With Quote
  #22 (permalink)  
Old 01-26-2010, 09:07 AM
Intermediate Member
 
Posts: 20
Default A Solution is found!

Thanks Rogerl !

I changed the syslog-ng configuration as you described (the default source on my CentOS 5.4 system is s_sys) and now I get a log of status messages on the zimbra logs and the "Server Statistics" page no longer shows error messages.

After about 5 minutes since the change, the "Server Status" page also turned blue - it was not immediate.

But now it is fixed! apparently the problem is simply the syslog-ng configuration. I'll go an open a bug about it.
Reply With Quote
  #23 (permalink)  
Old 01-26-2010, 09:17 AM
Intermediate Member
 
Posts: 20
Default

I opened Zimbra Bugzilla bug #44280 for this issue.
Reply With Quote
  #24 (permalink)  
Old 02-02-2010, 12:02 AM
New Member
 
Posts: 4
Default

Quote:
Originally Posted by Rogerl View Post
I have found that the zimbra part of syslog-ng.conf have some errors.

The "source zimbra_src {" statement have syntax error.
So fist I corrected this line so I could start syslog-ng, but there was still status problem, for ex. the red X.

what I did find was that if I remake/delete the "source zimbra_src {" line.

and change the log line from:
log { source(zimbra_src);

to
log { source(s_all);

s_all = is the default source profile in my configfile

And then I did restart of syslog-ng
/etc/init.d/syslog-ng restart

And now i get "status"-text in the log file.

grep "STATUS" /var/log/zimbra-stats.log | grep stats | head -n10

and the red X has change to blue makers now.

I hope this will also help you.

Regards,
//Roger
I didn't use syslog-ng. how can I fix in syslog.conf ??
Thanks.
Reply With Quote
  #25 (permalink)  
Old 02-19-2010, 11:01 AM
Intermediate Member
 
Posts: 20
Default

I don't know - can you attach your syslog.conf file?
Reply With Quote
  #26 (permalink)  
Old 03-30-2010, 09:34 PM
Loyal Member
 
Posts: 80
Default

I'm getting same problem few days ago,
I'm tried to check any advice from this thread, but my problem doesn't solve.
Today I've check permission files on /opt/zimbra/zmstats, and some files owned by root:

drwxr-x--- 2 zimbra zimbra 4096 Mar 26 00:02 2010-03-25
drwxr-x--- 2 zimbra zimbra 4096 Mar 27 00:00 2010-03-26
drwxr-xr-x 2 root root 4096 Mar 28 00:00 2010-03-27
drwxr-xr-x 2 root root 4096 Mar 29 00:00 2010-03-28
drwxr-xr-x 2 root root 4096 Mar 30 00:00 2010-03-29
drwxr-xr-x 2 root root 4096 Mar 31 00:00 2010-03-30
drwxr-xr-x 2 root root 4096 Mar 31 09:45 2010-03-31
-rw-r----- 1 zimbra zimbra 20394059 Mar 27 23:59 allprocs.csv
-rw-r----- 1 zimbra zimbra 372589 Mar 27 23:59 cpu.csv
-rw-r----- 1 zimbra zimbra 59243 Mar 27 23:50 df.csv
-rw-r--r-- 1 root root 6370 Mar 31 11:25 fd.csv

I think permission file is problem there, because:

/opt/zimbra/zmstat/mtaqueue.csv was stale (2010-03-27) pre-rotating
sh: /opt/zimbra/zmstat//2010-03-27/mtaqueue.csv.gz: Permission denied
Unable to move /opt/zimbra/zmstat/mtaqueue.csv to /opt/zimbra/zmstat//2010-03-27/mtaqueue.csv.gz at /opt/zimbra/zimbramon/lib/Zimbra/Mon/Zmstat.pm line 256.
/opt/zimbra/zmstat/io.csv was stale (2010-03-27) pre-rotating
sh: /opt/zimbra/zmstat//2010-03-27/io.csv.gz: Permission denied
Unable to move /opt/zimbra/zmstat/io.csv to /opt/zimbra/zmstat//2010-03-27/io.csv.gz at /opt/zimbra/zimbramon/lib/Zimbra/Mon/Zmstat.pm line 256.
/opt/zimbra/zmstat/allprocs.csv was stale (2010-03-27) pre-rotating
sh: /opt/zimbra/zmstat//2010-03-27/allprocs.csv.gz: Permission denied
Unable to move /opt/zimbra/zmstat/allprocs.csv to /opt/zimbra/zmstat//2010-03-27/allprocs.csv.gz at /opt/zimbra/zimbramon/lib/Zimbra/Mon/Zmstat.pm line 256.
/opt/zimbra/zmstat/df.csv was stale (2010-03-27) pre-rotating
sh: /opt/zimbra/zmstat//2010-03-27/df.csv.gz: Permission denied
Unable to move /opt/zimbra/zmstat/df.csv to /opt/zimbra/zmstat//2010-03-27/df.csv.gz at /opt/zimbra/zimbramon/lib/Zimbra/Mon/Zmstat.pm line 256.
zmstat-mysql.pid: Already running as pid 9669
/opt/zimbra/zmstat/mysql.csv was stale (2010-03-27) pre-rotating
sh: /opt/zimbra/zmstat//2010-03-27/mysql.csv.gz: Permission denied
Unable to move /opt/zimbra/zmstat/mysql.csv to /opt/zimbra/zmstat//2010-03-27/mysql.csv.gz at /opt/zimbra/zimbramon/lib/Zimbra/Mon/Zmstat.pm line 256.
Warning: Not possible to monitor process stats
/opt/zimbra/zmstat/proc.csv was stale (2010-03-27) pre-rotating
sh: /opt/zimbra/zmstat//2010-03-27/proc.csv.gz: Permission denied

Ok, now I'm tried to change ownership:
as root:
# chown -R zimbra.zimbra /opt/zimbra/zmstat/

and, as zimbra:
$ zmstatctl start
$ zmstatctl status

Running: zmstat-cpu
Running: zmstat-proc
Running: zmstat-vm
Running: zmstat-fd
Running: zmstat-allprocs
Running: zmstat-mysql
Running: zmstat-io
Running: zmstat-mtaqueue
Running: zmstat-df
Running: zmstat-io-x

Not sure?
$ zmcontrol status
$ zmcontrol status
Host mail.lerindro.co.id
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Running
memcached Running
mta Running
snmp Running
spell Running
stats Running

Now open zimbra administration panel and see server status, stats running well...
__________________
Just logs
blog.pnyet.web.id
Reply With Quote
Reply


Thread Tools
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