Results 1 to 8 of 8

Thread: zmstat-chart agregation?

  1. #1
    ecobrazim is offline Loyal Member
    Join Date
    Sep 2008
    Location
    Belgium
    Posts
    91
    Rep Power
    6

    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!

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,585
    Rep Power
    57

    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
    Last edited by phoenix; 11-24-2011 at 05:57 AM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    ecobrazim is offline Loyal Member
    Join Date
    Sep 2008
    Location
    Belgium
    Posts
    91
    Rep Power
    6

    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.

  4. #4
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,585
    Rep Power
    57

    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


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    ecobrazim is offline Loyal Member
    Join Date
    Sep 2008
    Location
    Belgium
    Posts
    91
    Rep Power
    6

    Default

    Thanks phoenix, much appreciated!

  6. #6
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,585
    Rep Power
    57

    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).
    Last edited by phoenix; 11-25-2011 at 06:57 AM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    ecobrazim is offline Loyal Member
    Join Date
    Sep 2008
    Location
    Belgium
    Posts
    91
    Rep Power
    6

    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.

  8. #8
    ecobrazim is offline Loyal Member
    Join Date
    Sep 2008
    Location
    Belgium
    Posts
    91
    Rep Power
    6

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Msg Count, Msg Vol, AS/AV chart stop working
    By John Siu in forum Administrators
    Replies: 0
    Last Post: 03-15-2011, 08:19 PM
  2. large nginx.csv file in zmstat
    By yasanthau in forum Administrators
    Replies: 0
    Last Post: 01-04-2011, 04:55 AM
  3. zmstat suddendly shutting down
    By maxxer in forum Administrators
    Replies: 0
    Last Post: 10-14-2010, 11:38 PM
  4. 5.0 Beta zmstat don't work on openSUSE10.2
    By Achim.Theobald in forum Users
    Replies: 2
    Last Post: 09-25-2007, 10:47 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •