Configuration of Grafana against Checkmk

Hello, I am going to try and I hope this time I explain better, I want to connect from grafana to Checkmk to make the graphs in Grafana, in Checkmk I have established the connection by https with a certificate delivered by the certifying unit of the company, that is a certificate generated by the Windows server of the certifying entity of the company.

The certificate in Checkmk is already set up and validated by the Windows server’s certification authority. The Checkmk server is installed on a Red Hat 8.7 and checkmk enterprise 2.1.0p27.

The Grafana certificate is already set up and validated by the certification authority of Windows

Server. The Grafana server is installed on a Red Hat 8.7 and the Grafana version is 9.4.7.

The Checkmk datasource is already installed in the Grafana Plugin 3.0.0 version [Release] Grafana Plugin 3.0.0.

Well I have done all these steps but still not establish the connection, in the official documentation of Integrating Checkmk in Grafana.

But there is a problem and that is that it does not comment the configuration when both Grafana and Checkmk is via https, giving this error

logger=data-proxy-log userId=5 orgId=1 uname=admin path=/api/datasources/proxy/uid/WMelo784k/cmk/check_mk/ remote_addr= referer= t=2023-05-12T13:55:34.102203596+02:00 level=error msg=“Proxy request failed” err=“tls: failed to verify certificate: x509: certificate signed by unknown authority”

logger=context userId=5 orgId=1 uname=admin t=2023-05-12T13:55:34.102301742+02:00 level=error msg=“Request Completed” method=POST path=/api/datasources/proxy/uid/WMelo784k/cmk/check_mk/ status=502 remote_addr= time_ms=27 duration=27.325293ms size=0 referer= handler=/api/datasources/proxy/uid/:uid/*

grafana connects to checkmk using https, checkmk (or a reverse proxy in front of it) answers with a certificate that is not trusted by the operating system grafana is running on, so grafana cancels the connection.

you have to import your ca on the system grafana is running on.

does this help?