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 06-09-2008, 07:51 AM
Special Member
 
Posts: 100
Default Statistics Graph Generation Failing

Hey Everyone,

I have upgraded from 5.0.2 to 5.0.6 and most everything went splendid; however, now the graphs are not updating in the admin console.

I ran: sh -x /opt/zimbra/libexec/zmgengraphs
which produced:
Quote:
+ use strict
/opt/zimbra/libexec/zmgengraphs: line 19: use: command not found
+ use lib /opt/zimbra/zimbramon/lib
/opt/zimbra/libexec/zmgengraphs: line 20: use: command not found
+ use Zimbra::Util::Common
/opt/zimbra/libexec/zmgengraphs: line 21: use: command not found
+ '$'
/opt/zimbra/libexec/zmgengraphs: line 22: $: command not found
+ =1
/opt/zimbra/libexec/zmgengraphs: line 22: =1: command not found
/opt/zimbra/libexec/zmgengraphs: line 24: syntax error near unexpected token `0'
/opt/zimbra/libexec/zmgengraphs: line 24: `exit(0) unless (-f '/opt/zimbra/conf/localconfig.xml');'
OS: Ubuntu 6.06 LTS Server - Linux 2.6.15-51-server #1 SMP GNU/Linux

Zm: Version 5.0.6_GA_2313.UBUNTU6.FOSS

Hardware:

Pentium 4 3800 MHz
4 GB DDRII 533
[x2 - RAID 1] 250 GB SATA
Gigabit Ethernet

Hey ideas would be great! Thanks.
Reply With Quote
  #2 (permalink)  
Old 06-09-2008, 08:10 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

Did you try running it as the Zimbra user?
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 06-09-2008, 08:14 AM
Special Member
 
Posts: 100
Default

Yes, that output was generated running as the zimbra user

Quote:
sudo su zimbra
sh -x /opt/zimbra/libexec/zmgengraphs
Reply With Quote
  #4 (permalink)  
Old 06-09-2008, 08:31 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

Try running 'su - zimbra' then the command as:
Code:
/opt/zimbra/libexec/zmgengraphs
Does that generate the output?
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 06-09-2008, 08:39 AM
Special Member
 
Posts: 100
Default

The command executed but failed to update the graphs within the administrator interface. It presented the following output

Quote:
Generating hour graph for mta on myhost.mydomain.com
Generating hour graph for mta on myhost.mydomain.com
Generating day graph for mta on myhost.mydomain.com
Generating day graph for mta on myhost.mydomain.com
Generating month graph for mta on myhost.mydomain.com
Generating month graph for mta on myhost.mydomain.com
Generating year graph for mta on myhost.mydomain.com
Generating year graph for mta on myhost.mydomain.com
Generating hour graph for mta on localhost
Generating hour graph for mta on localhost
Generating day graph for mta on localhost
Generating day graph for mta on localhost
Generating month graph for mta on localhost
Generating month graph for mta on localhost
Generating year graph for mta on localhost
Generating year graph for mta on localhost
Generating hour graph for mta on ALL
Generating hour graph for mta on ALL
Generating day graph for mta on ALL
Generating day graph for mta on ALL
Generating month graph for mta on ALL
Generating month graph for mta on ALL
Generating year graph for mta on ALL
Generating year graph for mta on ALL
Generating hour graph for amavis on myhost.mydomain.com
Generating day graph for amavis on myhost.mydomain.com
Generating month graph for amavis on myhost.mydomain.com
Generating year graph for amavis on myhost.mydomain.com
Generating hour graph for amavis on localhost
Generating day graph for amavis on localhost
Generating month graph for amavis on localhost
Generating year graph for amavis on localhost
Generating hour graph for amavis on ALL
Generating day graph for amavis on ALL
Generating month graph for amavis on ALL
Generating year graph for amavis on ALL
DBD::mysql::st execute failed: Table './zimbra_logger/disk_aggregate' is marked as crashed and should be repaired at /opt/zimbra/libexec/zmgengraphs line 342.
Error executing select distinct(host) from disk_aggregate with
Table './zimbra_logger/disk_aggregate' is marked as crashed and should be repaired
Table './zimbra_logger/disk_aggregate' is marked as crashed and should be repaired at /opt/zimbra/libexec/zmgengraphs line 343.

Can't call method "fetchall_arrayref" on an undefined value at /opt/zimbra/libexec/zmgengraphs line 406.
Reply With Quote
  #6 (permalink)  
Old 06-09-2008, 08:44 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

Logger - Zimbra :: Wiki

Please update your profile with your Zimbra version & release details: zmcontrol -v
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 06-09-2008, 09:52 AM
Special Member
 
Posts: 100
Default

I have update my profile, I did post my info at the start of this thread?...

I attempted to follow the directions on the wiki which worked for a couple of the databases, however they did not for the one casuing the trouble, here is the dialog:

Quote:
mysql> REPAIR TABLE `disk_aggregate`;
+------------------------------+--------+----------+------------------------------------------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+------------------------------+--------+----------+------------------------------------------------------------------------------------+
| zimbra_logger.disk_aggregate | repair | Error | Table './zimbra_logger/disk_aggregate' is marked as crashed and should be repaired |
| zimbra_logger.disk_aggregate | repair | Error | Table 'disk_aggregate' is marked as crashed and should be repaired |
| zimbra_logger.disk_aggregate | repair | status | Table is already up to date |
+------------------------------+--------+----------+------------------------------------------------------------------------------------+
3 rows in set (0.01 sec)

mysql> CHECK TABLE `disk_aggregate`;
+------------------------------+-------+----------+------------------------------------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+------------------------------+-------+----------+------------------------------------------------------------------------------+
| zimbra_logger.disk_aggregate | check | error | Table upgrade required. Please do "REPAIR TABLE `disk_aggregate`" to fix it! |
+------------------------------+-------+----------+------------------------------------------------------------------------------+
1 row in set (0.00 sec)
Any ideas ?
Reply With Quote
  #8 (permalink)  
Old 06-09-2008, 09:54 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

Quote:
Originally Posted by 3RiversTechAdmin View Post
Any ideas ?
Yes, repair the tables. Follow the instructions for repairing corrupt tables in the link I've already given you.
__________________
Regards


Bill
Reply With Quote
  #9 (permalink)  
Old 06-09-2008, 10:08 AM
Special Member
 
Posts: 100
Default

I'm confused, perhaps we are not understanding one another, I tried to follow those directions and as I posted above while the repair command works for the other tables, after running it on the disk_aggregate table, mysql still reports it needs to be repaired.

[QUOTE]
mysql> REPAIR TABLE `disk_aggregate`;
| zimbra_logger.disk_aggregate | repair | Error | Table './zimbra_logger/disk_aggregate' is marked as crashed and should be repaired |
| zimbra_logger.disk_aggregate | repair | Error | Table 'disk_aggregate' is marked as crashed and should be repaired |
| zimbra_logger.disk_aggregate | repair | status | Table is already up to date |
...
mysql> CHECK TABLE `disk_aggregate`;
....
Please do "REPAIR TABLE `disk_aggregate`" to fix it! |

Last edited by 3RiversTechAdmin; 06-09-2008 at 10:31 AM.. Reason: typo
Reply With Quote
  #10 (permalink)  
Old 06-11-2008, 08:57 AM
Loyal Member
 
Posts: 88
Default

Hi 3Rivers,

Check out this wiki page:
Repair Logger Data Corruption - Zimbra :: Wiki

It gives an extra step to try if the standard repair table doesn't work.
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.