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
  #1 (permalink)  
Old 10-28-2009, 05:45 PM
New Member
 
Posts: 4
Default upgrade to 6.0.2 stats and status no longer working

As many have encountered, I experience the problem with the status page being wrong (everything appears down (red cross) even if it's working perfectly) and the stats are no longer working, after updating from 5 to 6.0.2

I noticed other had different results from their troubleshooting tips per the wiki, but the information collected following the procedure didn't help me. Here are the information:

zmloggerctl status; echo $?; ps ax | grep zmlogger

0
24968 pts/1 S+ 0:00 grep zmlogger

/opt/zimbra/libexec/zmrrdfetch -f zmmtastats
no structure found for zmmtastats at /opt/zimbra/libexec/zmrrdfetch line 225.

/opt/zimbra/libexec/zmrrdfetch -c -f zmmtastats
no structure found for zmmtastats at /opt/zimbra/libexec/zmrrdfetch line 225.

grep -w MTA /var/log/zimbra-stats.log

(doesn't return anything, and zimbra-stats.log stays empty)

zmsoap -z GetLoggerStatsRequest stats/@name=zmmtastats | head -20
ERROR: service.FAILURE (system failure: Unable to read logger stats)

zmsoap -z GetLoggerStatsRequest stats/@name=zmmtastats @limit=1 | head -50
ERROR: service.FAILURE (system failure: Unable to read logger stats)

As a guess, I tried to edit the syslog setting to make syslog write all data (mail.* auth.* local.*) to zimbra-stats.log, not really sure that was what was expected... At least I get the information the system needs to make the stats in the correct place, but it doesn't work better. The message I get as a result for the last two commands is then :

zmsoap -z GetLoggerStatsRequest stats/@name=zmmtastats |head -20
GetLoggerStatsResponse xmlns="urn:zimbraAdmin"/

and

zmsoap -z GetLoggerStatsRequest stats/@name=zmmtastats @limit=1
GetLoggerStatsResponse xmlns="urn:zimbraAdmin"/

System is Debian 5 64 bits, emulated in a vmware.

What are the steps to take to make it work? (the data doesn't seem written to zimbra-stats.log from where it is supposed to originate, but I checked the usual suspects in that regard (permissions...) so I am a little puzzled.

Thanks in advance for helping me fixing my problem!

Last edited by Richelieu : 10-28-2009 at 06:51 PM.
Reply With Quote
  #2 (permalink)  
Old 10-29-2009, 09:50 AM
Junior Member
 
Posts: 9
Default

This seemed to work for me, hope it helps:

As root

Go to line 57 of /opt/zimbra/libexec/zmstat-convertd and change it to say:

next if (!defined($ppid));

instead of

die "ppid not found for $pid" if (!defined($ppid));

Restart Zimbra
Reply With Quote
  #3 (permalink)  
Old 10-29-2009, 10:28 AM
New Member
 
Posts: 4
Default

Thanks jwhbud. Unfortunately, I didn't solve the problem for me
I still get blank stats.
Reply With Quote
  #4 (permalink)  
Old 10-30-2009, 04:31 AM
New Member
 
Posts: 4
Default

I'll add that I got the same zmstat.out than others :

Use of uninitialized value in subtraction (-) at /opt/zimbra/libexec/zmstat-allprocs line 118.

repeated thousands of line...
Reply With Quote
  #5 (permalink)  
Old 10-30-2009, 06:48 AM
imx imx is offline
Active Member
 
Posts: 42
Default

Ack, same problem...just found this thread; ive posted another, apologies. The global status work fine, however the server specific on the drop down below the global, do not work... 48 hours shows nothing, 30 days and above shows stuff....
Reply With Quote
  #6 (permalink)  
Old 10-30-2009, 07:13 AM
imx imx is offline
Active Member
 
Posts: 42
Default

root@mambo:/etc/apache2# tail /opt/zimbra/zmstat/zmstat.out
Use of uninitialized value in subtraction (-) at /opt/zimbra/libexec/zmstat-allprocs line 118.
Use of uninitialized value in subtraction (-) at /opt/zimbra/libexec/zmstat-allprocs line 118.
Use of uninitialized value in subtraction (-) at /opt/zimbra/libexec/zmstat-allprocs line 118.
Use of uninitialized value in subtraction (-) at /opt/zimbra/libexec/zmstat-allprocs line 118.
Use of uninitialized value in subtraction (-) at /opt/zimbra/libexec/zmstat-allprocs line 118.
Use of uninitialized value in subtraction (-) at /opt/zimbra/libexec/zmstat-allprocs line 118.
Use of uninitialized value in subtraction (-) at /opt/zimbra/libexec/zmstat-allprocs line 118.
Use of uninitialized value in subtraction (-) at /opt/zimbra/libexec/zmstat-allprocs line 118.
Use of uninitialized value in subtraction (-) at /opt/zimbra/libexec/zmstat-allprocs line 118.
Use of uninitialized value in subtraction (-) at /opt/zimbra/libexec/zmstat-allprocs line 118.
Reply With Quote
  #7 (permalink)  
Old 11-06-2009, 10:41 AM
Starter Member
 
Posts: 2
Default

I am also getting this same error. Fresh install of 6.0.2 in Debian 5 64bit on a Xen DomU.
Reply With Quote
  #8 (permalink)  
Old 11-10-2009, 05:12 AM
Special Member
 
Posts: 123
Default

Same for me.

Running FC11 x64 version and Zimbra OpenSource 6.0.2 .
Reply With Quote
  #9 (permalink)  
Old 11-10-2009, 05:34 AM
imx imx is offline
Active Member
 
Posts: 42
Default

https://bugzilla.zimbra.com/show_bug.cgi?id=42332

ive logged this bug, please update this if youre also seeing it.
Reply With Quote
  #10 (permalink)  
Old 11-10-2009, 09:44 PM
Starter Member
 
Posts: 1
Default Finally

I had to do a few things to get the statuses and stats showing properly:

First, my /opt/zimbra/logger/db/data/logger.sqlitedb file didn't have any schema, so I did this as root:
rm -r /opt/zimbra/logger/db/data/*

Second, I wanted to verify all my permissions, so as root:
/opt/zimbra/libexec/zmfixperms

Then I ran this as the zimbra user to create the /opt/zimbra/logger/db/data/logger.sqlitedb and /opt/zimbra/logger/db/data/rrds directory:
/opt/zimbra/libexec/zmlogger&

I then had to kill that zmlogger process because it still didn't work: killall zmlogger

I then noticed the /var/log/zimbra-stats.log file was staying empty... after much digging, I found the /etc/syslog.conf file wasn't modified during the installation like it should to include zimbra-stats.log I backed up my /etc/syslog.conf file and then ran this as root:
/opt/zimbra/bin/zmsyslogsetup

Restarted Zimbra, and now everything works. I think the syslog.conf not getting updated was the cause of the whole problem.
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0