Article ID: 3521
Last updated: 13 May, 2024
Synopsis Grafana is an open-source analytics platform for visualizing and analyzing data from a wide range of data sources. Checkmk, a monitoring platform for the IT infrastructure, can be connected to Grafana - it allows the administrator to easily visualize the data, analyze past system behavior and predict future trends. While checkmk provides its own way of plotting data, one might want to integrate it with Grafana to achieve uniformity of the IT monitoring infrastructure and obtain additional analysis tools for their storage system. Open-E JovianDSS allows for a container-based deployment of checkmk without any additional requirement for hardware or licenses in the form of a Small Update. This robust monitoring tool can be integrated with Grafana software by following the steps presented in this article. Prerequisites To successfully integrate checkmk deployed n a Open-E JovianDSS container with Grafana you will need:
Installation of checkmk Small Update Small Update installation is a simple procedure:
The current version of checkmk container requires 2 Small Updates to work properly: the checkmk container and the package of repositories. Only one reboot is necessary once all the Small Updates are installed to finish the procedure. The order of Small Update upload does not matter. Installation of Grafana Grafana can be installed on Linux, MacOS or Windows machines depending on the requirements of the infrastructure. Please follow the guide from the official Grafana page (https://grafana.com/docs/grafana/latest/setup-grafana/installation/). During our testing, we deployed Grafana on the latest LTS version of Ubuntu, Ubuntu 22.04.4 LTS. Grafana and checkmk integration The integration of Grafana and checkmk is described in the following article by checkmk - https://docs.checkmk.com/latest/en/grafana.html. This article is written for a standalone version of checkmk and for the latest stable version (2.2.0). To adjust it to our ecosystem it is required to make some changes to the procedure.
To communicate with the data source, Grafana requires the user to provide the URL for the WebGUI of checkmk. In the case of container-deployed checkmk in Open-E JovianDSS, the URL will be:
using this exact URL will result in an error while connecting to the Grafana. As our checkmk deployment uses a self-signed certificate, it is necessary to add an HTTP port as a way to access the WebGUI. This can be done via the console access of checkmk container:
to access the console. default login: admin default password: admin use the default login and password provided in the README file of the Small Update if they were not changed beforehand
The point is to add an additional port for the Apache service to listen on. Do not modify the line:
As this line allows the access to the GUI via https port. Add a line under it, the syntax is as follows:
For the sake of the example, we will use port 1081:
You can use any free port in your network. If you want to isolate this HTTP connection from other clients you can configure proper rules in your network.
after the service is restarted you checkmk WebGUI should be accessible from the client machine under the following link:
Once all is done, jump to point 4 of the manual. If everything was done correctly you will be able to configure working checkmk data source:
|