Using zmstat-chart to generate statistics: Difference between revisions
(Created page with "=== <h1>Using zmstat-chart to generate statistics</h1> === <hr> <br> <h2>Problem: </h2> <p>Using zmstat-chart to generate statistics.</p> <h2>Solution:</h2> The chart gener...") |
No edit summary |
||
(6 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
== | {{BC|Certified}} | ||
__FORCETOC__ | |||
<div class="col-md-12 ibox-content"> | |||
=Using zmstat-chart to generate statistics= | |||
{{KB|{{ZC}}|{{ZCS 8.8}}|{{ZCS 8.7}}|{{ZCS 8.6}}|{{ZCS 8.5}}|}} | |||
====Problem==== | |||
Using zmstat-chart to generate statistics | |||
====Solution==== | |||
The chart generation can be done using 'zmstat-chart'. | The chart generation can be done using 'zmstat-chart'. | ||
Line 13: | Line 16: | ||
The data is stored under '/opt/zimbra/zmstat', which each previous day's data in | 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: | |||
<pre>mkdir /tmp/charts | <pre>mkdir /tmp/charts | ||
Line 24: | Line 28: | ||
=====Step 2===== | |||
Using a configuration file is better and generating it is easy, so to do so run: | |||
<pre>zmstat-chart-config > /tmp/zmstat-chart-config.xml</pre> | <pre>zmstat-chart-config > /tmp/zmstat-chart-config.xml</pre> | ||
Line 35: | Line 38: | ||
{| class="wikitable" style="background-color:#d0f0c0;" cellpadding="10" | |||
Shashank Shekhar Tewari | |'''Submitted by''': Shashank Shekhar Tewari | ||
|} | |||
{{Article Footer|ZCS 8.8, 8.7, 8.6, 8.5|2017-08-23}} |
Latest revision as of 12:22, 6 June 2020
Using zmstat-chart to generate statistics
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 |