Using zmstat-chart to generate statistics

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Using zmstat-chart to generate statistics

   KB 23327        Last updated on 2020-06-6  




0.00
(0 votes)


Problem

Using zmstat-chart to generate statistics


Solution

The chart generation can be done using 'zmstat-chart'.

This tool comes within Zimbra itself, and generates the charts from the data available on the server and generates an 'index.html' file. This file can then be opened to view the charts.

The data is stored under '/opt/zimbra/zmstat', which each previous day's data in '/opt/zimbra/zmstat/<previous-date>'


Step 1

The simplest way to use it would be to run:

mkdir /tmp/charts
zmstat-chart -s '/opt/zimbra/zmstat/2016-05-10' -d /tmp/charts

This will generate all the files in the 'charts' directory. This can be then moved to a machine running a simple webserver, so that the 'index.html' can be viewed, or else the png image files can simply be opened and checked.


Step 2

Using a configuration file is better and generating it is easy, so to do so run:

zmstat-chart-config > /tmp/zmstat-chart-config.xml

And then run the previous command with the '-c' option:

zmstat-chart -s '/opt/zimbra/zmstat/2016-05-10' -d /tmp/charts -c /tmp/zmstat-chart-config.xml


Submitted by: Shashank Shekhar Tewari
Verified Against: ZCS 8.8, 8.7, 8.6, 8.5 Date Created: 2017-08-23
Article ID: https://wiki.zimbra.com/index.php?title=Using_zmstat-chart_to_generate_statistics Date Modified: 2020-06-06



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »


Jump to: navigation, search