Problems with Grafana CheckMK Plugin

CMK version: 2.2.0p32
OS version: Ubuntu 20.04

Error message: Could not read API response, make sure the URL you provided is correct.

Hello,

I just updated my CheckMK instance to version 2.2.0p32 which is running fine so far.

Besides that I also updated Grafana to the newest version (11.1.3) and tried to use the newest CheckMK plugin (3.3.0) in Grafana. But I can’t connect the plugin to the site. I always get the error Could not read API response, make sure the URL you provided is correct.

The URL looks like this: https://CHECKMK.MYDOMAIN.COM/MYSITE
Also the URL is correct. I already tried it via curl command directly from the Grafana host.

Web developer tools in Edge shows me the following URL is called and the return code is 410:
https://MYGRAFANA:3000/api/datasources/proxy/uid/SOMESORTOFID/cmk/check_mk/webapi.py?action=get_combined_graph_identifications

If I understand this URL correctly it tries to connect to a webapi URL to CheckMK but as far as I know there is no Webapi anymore in this version of CheckMK. Shouldn’t be the Rest API be called?

I also can’t set any version in the plugin like mentioned in the CheckMK guide Integrating Checkmk in Grafana at point 4 picture 3.

Did you download it from Github or Grafana? The Grafana version only works with Checkmk cloud or MSP.

Directly from Github.
This version: Release v3.3.0 · Checkmk/grafana-checkmk-datasource · GitHub

This Zip file:
tribe-29-checkmk-datasource-3.3.0.zip

Looks like the problem is Grafana itself. After reinstalling an older version of Grafana (9.5.21) everything works as expected. Maybe a newer versions work too.

So for the moment I use:
Grafana 9.5.21
Grafana CheckMK Plugin 3.3.0
CheckMK Enterprise 2.2.0p32

1 Like

If you think this might be an issue with our Grafana integration, you can also open an issue on Github.

1 Like

If you can not set the edition or version @Anders tip with the signed plugin is spot on.

This means, that you are specifying version < 2.2 in the version dropdown in the Checkmk Grafana plugin, but you are using a Checkmk version (>= 2.2) that removed the webapi, so it returns a 410 Gone

Have you checked if you maybe have two Checkmk data sources in Grafana?

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.