Site icon Franky's Web

NoSpamProxy: Dashboards with Grafana

Grafana, InfluxDB and Telegraf can also be used to create attractive dashboards for statistics or monitoring for the NoSpamProxy e-mail security gateway. For the dashboards, the Windows performance counters for NoSpamProxy can be sent to an InfluxDB using Telegraf. The data can then be displayed on a dashboard using Grafana. Here is an example of a possible dashboard:

Of course, the dashboard can be freely configured; for example, a joint dashboard can be created for NoSpamProxy and Exchange Server to display the status of the email infrastructure. For Exchange Server there are two articles here that could be useful:

This also works for NoSpamProxy in the same way as described in the two articles. To obtain the data for the example dashboard shown above, only a corresponding Telegraf configuration and a small PowerShell script are required. Most of the data can be delivered via Windows Performance Counter. Data that is not available via the performance counter, such as the remaining time of the certificate or license, can be sent to the InfluxDB using the PowerShell script.

The Telegraf configuration and the PowerShell script can be downloaded here:

In the Telegraf configuration, only lines 25 - 28 for the connection to the InfluxDB and line 112 with the path to the PowerShell script need to be adjusted. Depending on how the NoSpamProxy environment is set up, it may be necessary to adjust the queries for the performance counters in the Telegraf configuration.

The download also includes the example dashboard as a JSON file. If the dashboard is imported into Grafana, the data sources for the metrics only need to be adapted to your own environment once. Alternatively, you can of course also create a dashboard according to your own ideas.

Exit mobile version