- This article is a Community contribution and may include unsupported customizations.

On this Wiki, we will see how we can monitor Zimbra by using Grafana, InfluxDB and Telegraf, this dashboard is a very early version, v0.1 even. Your feedback is always welcome.

At the end of this Wiki you can have a Dashboard similar to this one:

Infrastructure Topology

Here is the topology followed in this design, in it we have:

The Zimbra Collaboration environment on the left side of the image, with Telegraf's agent that collects information that we pass on to you through scripts

The InfluxDB database where all these metrics received from Telegraf are stored

The Grafana Dashboard that displays the information stored in InfluxDB

Script to collect information from Zimbra Collaboration

In order to collect information from the Zimbra Collaboration mail queues, as well as to calculate messages sent, etc., I have used the pflogsumm itself, and with it I have modified the output to be in InfluxDB format.

Telegraf configuration in Zimbra Collaboration agents

In the servers of Zimbra Collaboration we will have to install Telegraf, you have all the steps in the following Blog post, once we have Telegraf installed, we will have to configure our additional scripts at the end of the file, this way my part at the end shows the scripts of Zimbra and the others to monitor the state of the server:

Importing Dashboard in Grafana

I want to thank Lex Rivera for his work, who is the creator of the rest of the Dashboard for the Linux, CPU, Disk, RAM, etc. metrics.

The steps to import them are as follows, go to our Dashboards, and press Import:

The following screen will appear, and we can either upload the downloaded. json file, or enter the ID of the Zimbra Dashboard: 2846, we will automatically appear the following, select our datasource and give it to Import.

After just a few minutes we can start to see a lively Dashboard as follows: