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 11-24-2011, 02:32 AM
Loyal Member
 
Posts: 76
Post zmstat-chart agregation?

Hi all,

I've looked all over the net and can't seem to find a single proper explanation on how to use the zmstat-chart command properly. Could someone help me?

I'm trying to generate weekly charts:

Code:
zmstat-chart --no-summary \
                              --aggregate-start-at "11/14/2011 00:00:01" \
                              --aggregate-end-at "11/20/2011 23:59:59" \
                              --srcdir /opt/zimbra/zmstat/2011-11-{14,15,16,17,18,19,20} \
                              --destdir /tmp/week46 \
                              --title "14-20/11/2011"
The above generates these errors:
Code:
df.csv, line 290: java.text.ParseException: Unparseable date: ""
df.csv, line 580: java.text.ParseException: Unparseable date: ""
I've tried many date combination and using the variables in different ways but I just can't seem to get it working.

Could someone tell me what I'm doing wrong or give me an example on how to acheve the above?

Thanks!
Reply With Quote
  #2 (permalink)  
Old 11-24-2011, 03:14 AM
Zimbra Consultant & Moderator
 
Posts: 20,315
Default

It works for me on ZCS 7.1.3 NE.

Quote:
Originally Posted by ecobrazim View Post
Could someone tell me what I'm doing wrong or give me an example on how to acheve the above?
See the last comment for an example of usage: Bug 54626 – zmstat-chart Unparsable date error generating zmstat charts

[EDIT]I forgot to post the link to the wiki information on this subject: http://wiki.zimbra.com/wiki/Special:...chart%22&go=Go
__________________
Regards


Bill

Last edited by phoenix; 11-24-2011 at 04:57 AM..
Reply With Quote
  #3 (permalink)  
Old 11-25-2011, 01:25 AM
Loyal Member
 
Posts: 76
Default

Thanks for your answer, I'll try and find a moment to do the upgrade.

My question however was really to try and find out if the syntax i am using is correct. Could you try it and let me know if you get the expected data?

Thanks.
Reply With Quote
  #4 (permalink)  
Old 11-25-2011, 01:47 AM
Zimbra Consultant & Moderator
 
Posts: 20,315
Default

Quote:
Originally Posted by ecobrazim View Post
My question however was really to try and find out if the syntax i am using is correct. Could you try it and let me know if you get the expected data?.
Sorry, I think I may have been a bit hasty in saying it worked for me. I have to go out shortly but I'll run some more tests this afternoon and post back with the results.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 11-25-2011, 02:03 AM
Loyal Member
 
Posts: 76
Default

Thanks phoenix, much appreciated!
Reply With Quote
  #6 (permalink)  
Old 11-25-2011, 05:45 AM
Zimbra Consultant & Moderator
 
Posts: 20,315
Default

Have a look in the following file (it's possibly getting quite large):

Code:
tail -f /opt/zimbra/zmstat/zmstat.out
...... and do you see this:

Code:
Use of uninitialized value in subtraction (-) at /opt/zimbra/libexec/zmstat-allprocs line 118.
If you do then it's possibly this bug: Bug 65948 – zmstat-allprocs spamming zmstat.out

[EDIT]I will look some more just in case it's not that bug (I certainly see that error).
__________________
Regards


Bill

Last edited by phoenix; 11-25-2011 at 05:57 AM..
Reply With Quote
  #7 (permalink)  
Old 11-25-2011, 08:19 AM
Loyal Member
 
Posts: 76
Default

Hi Phoenix,
Thanks for taking the time to have a look at this. I can't check it right now as it's now the weekend and I have my father cap on but I'll check if first thing on Monday!

Thanks again.
Reply With Quote
  #8 (permalink)  
Old 11-28-2011, 11:53 PM
Loyal Member
 
Posts: 76
Default

Hi Phoenix,

A day late but here I am.

The following are the only entries in the files.

Code:
$ bzcat /opt/zimbra/zmstat/zmstat.out*bz2
11/11/2011 15:38:00: ERROR: No such process: '2489'
11/12/2011 09:40:30: ERROR: No such process: '6838'
11/13/2011 20:19:00: ERROR: No such process: '12085'
11/15/2011 14:57:00: ERROR: No such process: '355'
11/18/2011 15:27:30: ERROR: No such process: '22937'
11/19/2011 06:11:30: ERROR: No such process: '19748'
11/19/2011 12:32:00: ERROR: No such process: '4074'
11/21/2011 02:37:30: ERROR: No such process: '22220'
11/23/2011 07:00:00: ERROR: No such process: '1595'
Use of uninitialized value $s[0] in hash element at /opt/zimbra/libexec/zmstat-allprocs line 101, <STAT> line 8.
I don't think it's the bug you mention. It might work but I simply can't find a simple clear explanation on how to do an aggregate.

If you do ever find out... or if anyone else manages to get this working, do let me know

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.