Grafana CheckMk data source

Grafana 9.0.7
I try to use CheckMk plugin

I installed CheckMk plugin and connecting to server work fine.
My Problem ist that no data are available on Grafana. I give in CheckMk user rights for sea Monitoring but grafana can not read data why?

Thx

Hi @cslippe,

Did you already check the documentation regarding it i.e.

I hope this helps.

Yes i do all steps. Connecting works but no recourse are available

Do you see anything in the grafana and also in the check_mk logs when trying to access/configure it?

Also I am such as @cslippe cannot see any data in grafana. Although I have added hosts to checkmk but does not show in grafana . What is the solution ?


Hi @babsdn,

If there is no error in the grafana logs (/var/log/grafana/grafana.log) as well then I would suggest checking the CheckMK logs and contacting their support as it might be a known issue which they know about it.

As I am running grafana as container this is follow docker logs -f grafana

logger=context userId=1 orgId=1 uname=admin t=2022-12-21T06:00:38.65772241Z level=info msg="Request Completed" method=POST path=/api/datasources/proxy/3/cmk/check_mk/webapi.py status=404 remote_addr=172.22.111.150 time_ms=3 duration=3.688122ms size=196 referer=http://172.20.112.32:3000/datasources/edit/Sf-ZcU5Vk handler=/api/datasources/proxy/:id/*
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T06:00:40.236940294Z level=info msg="Request Completed" method=POST path=/api/datasources/proxy/3/cmk/check_mk/webapi.py status=404 remote_addr=172.22.111.150 time_ms=3 duration=3.268897ms size=196 referer=http://172.20.112.32:3000/datasources/edit/Sf-ZcU5Vk handler=/api/datasources/proxy/:id/*
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T06:00:50.576544393Z level=info msg="Request Completed" method=POST path=/api/datasources/proxy/3/cmk/check_mk/ajax_vs_autocomplete.py status=404 remote_addr=172.22.111.150 time_ms=15 duration=15.783816ms size=196 referer="http://172.20.112.32:3000/dashboard/new?editPanel=2&orgId=1" handler=/api/datasources/proxy/:id/*
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T06:00:50.781849133Z level=info msg="Request Completed" method=POST path=/api/datasources/proxy/3/cmk/check_mk/ajax_vs_autocomplete.py status=404 remote_addr=172.22.111.150 time_ms=2 duration=2.348982ms size=196 referer="http://172.20.112.32:3000/dashboard/new?editPanel=2&orgId=1" handler=/api/datasources/proxy/:id/*
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T06:00:50.988665855Z level=info msg="Request Completed" method=POST path=/api/datasources/proxy/3/cmk/check_mk/ajax_vs_autocomplete.py status=404 remote_addr=172.22.111.150 time_ms=2 duration=2.085327ms size=196 referer="http://172.20.112.32:3000/dashboard/new?editPanel=2&orgId=1" handler=/api/datasources/proxy/:id/*
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T06:00:51.198552628Z level=info msg="Request Completed" method=POST path=/api/datasources/proxy/3/cmk/check_mk/ajax_vs_autocomplete.py status=404 remote_addr=172.22.111.150 time_ms=2 duration=2.133244ms size=196 referer="http://172.20.112.32:3000/dashboard/new?editPanel=2&orgId=1" handler=/api/datasources/proxy/:id/*
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T06:00:58.382377519Z level=info msg="Request Completed" method=POST path=/api/datasources/proxy/3/cmk/check_mk/ajax_vs_autocomplete.py status=404 remote_addr=172.22.111.150 time_ms=4 duration=4.242508ms size=196 referer="http://172.20.112.32:3000/dashboard/new?editPanel=2&orgId=1" handler=/api/datasources/proxy/:id/*
logger=cleanup t=2022-12-21T06:09:13.944010483Z level=info msg="Completed cleanup jobs" duration=8.727712ms
logger=cleanup t=2022-12-21T06:19:13.942271164Z level=info msg="Completed cleanup jobs" duration=7.580572ms
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T06:29:04.829103185Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=1 duration=1.709457ms size=0 referer= handler=/api/live/ws
logger=cleanup t=2022-12-21T06:29:14.003832635Z level=info msg="Completed cleanup jobs" duration=68.871034ms
logger=cleanup t=2022-12-21T06:39:14.006054314Z level=info msg="Completed cleanup jobs" duration=70.665312ms
logger=cleanup t=2022-12-21T06:49:14.002284418Z level=info msg="Completed cleanup jobs" duration=66.829095ms
logger=cleanup t=2022-12-21T06:59:14.003466006Z level=info msg="Completed cleanup jobs" duration=68.041327ms
logger=cleanup t=2022-12-21T07:09:14.003822235Z level=info msg="Completed cleanup jobs" duration=68.703739ms
logger=cleanup t=2022-12-21T07:19:14.00387824Z level=info msg="Completed cleanup jobs" duration=68.472034ms
logger=cleanup t=2022-12-21T07:29:14.004070968Z level=info msg="Completed cleanup jobs" duration=68.529313ms
logger=cleanup t=2022-12-21T07:39:13.94345444Z level=info msg="Completed cleanup jobs" duration=8.078981ms
logger=cleanup t=2022-12-21T07:49:13.944449166Z level=info msg="Completed cleanup jobs" duration=9.800496ms
logger=cleanup t=2022-12-21T07:59:13.942411333Z level=info msg="Completed cleanup jobs" duration=7.702077ms
logger=cleanup t=2022-12-21T08:09:14.002014264Z level=info msg="Completed cleanup jobs" duration=66.961827ms
logger=cleanup t=2022-12-21T08:19:13.941267785Z level=info msg="Completed cleanup jobs" duration=6.621414ms
logger=cleanup t=2022-12-21T08:29:13.944212563Z level=info msg="Completed cleanup jobs" duration=8.603929ms
logger=cleanup t=2022-12-21T08:39:14.004753843Z level=info msg="Completed cleanup jobs" duration=69.439541ms
logger=cleanup t=2022-12-21T08:49:13.942810715Z level=info msg="Completed cleanup jobs" duration=7.572105ms
logger=cleanup t=2022-12-21T08:59:13.955757248Z level=info msg="Completed cleanup jobs" duration=20.078735ms
logger=cleanup t=2022-12-21T09:09:13.942856383Z level=info msg="Completed cleanup jobs" duration=8.25269ms
logger=cleanup t=2022-12-21T09:19:13.94365789Z level=info msg="Completed cleanup jobs" duration=8.362535ms
logger=cleanup t=2022-12-21T09:29:14.002471828Z level=info msg="Completed cleanup jobs" duration=67.064728ms
logger=cleanup t=2022-12-21T09:39:13.943471415Z level=info msg="Completed cleanup jobs" duration=8.546398ms
logger=infra.usagestats t=2022-12-21T09:47:20.037513675Z level=warn msg="Failed to send usage stats" error="Post \"https://stats.grafana.org/grafana-usage-report\": dial tcp 34.96.126.106:443: i/o timeout (Client.Timeout exceeded while awaiting headers)" traceID=
logger=cleanup t=2022-12-21T09:49:13.945494709Z level=info msg="Completed cleanup jobs" duration=9.833509ms
logger=cleanup t=2022-12-21T09:59:13.943282605Z level=info msg="Completed cleanup jobs" duration=7.914607ms
logger=cleanup t=2022-12-21T10:09:13.942974415Z level=info msg="Completed cleanup jobs" duration=7.258686ms
logger=cleanup t=2022-12-21T10:19:13.943068211Z level=info msg="Completed cleanup jobs" duration=7.451704ms
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T10:21:06.310681979Z level=error msg="failed fetching permissions for user" userID=1 error="context canceled"
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T10:21:06.310804775Z level=error msg="Failed to get settings" error="context canceled"
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T10:21:06.311167493Z level=error msg="Request Completed" method=GET path=/dashboard/new status=500 remote_addr=172.22.111.150 time_ms=13 duration=13.197566ms size=1349 referer= handler=/dashboard/new
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T10:21:07.366290539Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=1 duration=1.744802ms size=0 referer= handler=/api/live/ws
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T10:25:34.571157966Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=3 duration=3.328444ms size=0 referer= handler=/api/live/ws
logger=context t=2022-12-21T10:25:39.497633816Z level=warn msg="failed to look up session from cookie" error="context canceled"
logger=context userId=0 orgId=0 uname= t=2022-12-21T10:25:39.497785627Z level=error msg= error="context canceled" traceID=
logger=context userId=0 orgId=0 uname= t=2022-12-21T10:25:39.497899622Z level=info msg="Request Completed" method=GET path=/public/plugins/tribe-29-checkmk-datasource/img/checkmk_logo.svg status=403 remote_addr=172.22.111.150 time_ms=0 duration=958.609µs size=15 referer="http://172.20.112.32:3000/dashboard/new?editPanel=2&orgId=1" handler=public-assets
logger=cleanup t=2022-12-21T10:29:14.002537019Z level=info msg="Completed cleanup jobs" duration=66.891469ms
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T10:30:22.279759842Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=1 duration=1.689642ms size=0 referer= handler=/api/live/ws
logger=context t=2022-12-21T10:30:22.68873129Z level=warn msg="failed to look up session from cookie" error="context canceled"
logger=context userId=0 orgId=0 uname= t=2022-12-21T10:30:22.688831308Z level=error msg= error="context canceled" traceID=
logger=context userId=0 orgId=0 uname= t=2022-12-21T10:30:22.688910148Z level=info msg="Request Completed" method=GET path=/public/plugins/tribe-29-checkmk-datasource/img/checkmk_logo.svg status=403 remote_addr=172.22.111.150 time_ms=0 duration=678.064µs size=15 referer=http://172.20.112.32:3000/datasources/edit/Sf-ZcU5Vk handler=public-assets
logger=cleanup t=2022-12-21T10:39:14.003577603Z level=info msg="Completed cleanup jobs" duration=68.378952ms
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T10:39:51.663298509Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=7 duration=7.741029ms size=0 referer= handler=/api/live/ws
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T10:39:52.676738911Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=1 duration=1.761016ms size=0 referer= handler=/api/live/ws
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T10:39:52.693115948Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=1 duration=1.174039ms size=0 referer= handler=/api/live/ws
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T10:41:12.928123335Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=3 duration=3.071779ms size=0 referer= handler=/api/live/ws
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T10:41:12.948149803Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=1 duration=1.541905ms size=0 referer= handler=/api/live/ws
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T10:41:12.967368603Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=1 duration=1.655998ms size=0 referer= handler=/api/live/ws
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T10:43:04.709021039Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=3 duration=3.40763ms size=0 referer= handler=/api/live/ws
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T10:43:04.72908476Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=1 duration=1.673997ms size=0 referer= handler=/api/live/ws
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T10:43:04.745754901Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=1 duration=1.599607ms size=0 referer= handler=/api/live/ws
logger=cleanup t=2022-12-21T10:49:14.001706079Z level=info msg="Completed cleanup jobs" duration=66.898272ms
logger=cleanup t=2022-12-21T10:59:14.002815967Z level=info msg="Completed cleanup jobs" duration=67.059243ms
logger=cleanup t=2022-12-21T11:09:13.942611209Z level=info msg="Completed cleanup jobs" duration=7.97635ms
logger=cleanup t=2022-12-21T11:19:14.003907924Z level=info msg="Completed cleanup jobs" duration=69.102296ms
logger=cleanup t=2022-12-21T11:29:14.00337617Z level=info msg="Completed cleanup jobs" duration=68.338848ms
logger=cleanup t=2022-12-21T11:39:13.943124611Z level=info msg="Completed cleanup jobs" duration=7.631516ms
logger=cleanup t=2022-12-21T11:49:13.943055372Z level=info msg="Completed cleanup jobs" duration=7.858331ms
logger=cleanup t=2022-12-21T11:59:13.94634617Z level=info msg="Completed cleanup jobs" duration=11.586996ms
logger=cleanup t=2022-12-21T12:09:13.942170006Z level=info msg="Completed cleanup jobs" duration=6.859409ms
logger=cleanup t=2022-12-21T12:19:13.942138128Z level=info msg="Completed cleanup jobs" duration=6.729924ms
logger=cleanup t=2022-12-21T12:29:14.001800336Z level=info msg="Completed cleanup jobs" duration=66.510782ms
logger=cleanup t=2022-12-21T12:39:13.941622572Z level=info msg="Completed cleanup jobs" duration=7.009967ms
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T12:45:48.972997574Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=8 duration=8.640862ms size=0 referer= handler=/api/live/ws
logger=cleanup t=2022-12-21T12:49:13.943632075Z level=info msg="Completed cleanup jobs" duration=7.974654ms
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T12:52:57.467096218Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=67 duration=67.603898ms size=0 referer= handler=/api/live/ws
logger=cleanup t=2022-12-21T12:59:13.94159991Z level=info msg="Completed cleanup jobs" duration=6.78195ms
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T13:05:52.238960378Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=7 duration=7.921314ms size=0 referer= handler=/api/live/ws
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T13:06:52.788173187Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=3 duration=3.044355ms size=0 referer= handler=/api/live/ws
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T13:07:45.034525181Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=3 duration=3.127478ms size=0 referer= handler=/api/live/ws
logger=cleanup t=2022-12-21T13:09:14.002661005Z level=info msg="Completed cleanup jobs" duration=67.467176ms
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T13:12:40.790221017Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=69 duration=69.060068ms size=0 referer= handler=/api/live/ws
logger=cleanup t=2022-12-21T13:19:14.003710911Z level=info msg="Completed cleanup jobs" duration=68.912689ms
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T13:22:50.1721645Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=68 duration=68.955419ms size=0 referer= handler=/api/live/ws
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T13:28:18.865027492Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=7 duration=7.563175ms size=0 referer= handler=/api/live/ws
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T13:28:42.619518172Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=2 duration=2.918844ms size=0 referer= handler=/api/live/ws
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T13:28:47.359083302Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=1 duration=1.749703ms size=0 referer= handler=/api/live/ws
logger=cleanup t=2022-12-21T13:29:13.942185852Z level=info msg="Completed cleanup jobs" duration=6.87692ms
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T13:30:31.870133371Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=3 duration=3.219443ms size=0 referer= handler=/api/live/ws
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T13:37:25.151414559Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=7 duration=7.660706ms size=0 referer= handler=/api/live/ws
logger=cleanup t=2022-12-21T13:39:14.003640473Z level=info msg="Completed cleanup jobs" duration=68.466446ms
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T13:40:53.172463581Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=4 duration=4.289812ms size=0 referer= handler=/api/live/ws
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T13:41:36.885409727Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=3 duration=3.105779ms size=0 referer= handler=/api/live/ws
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T13:41:36.902409905Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=1 duration=1.642777ms size=0 referer= handler=/api/live/ws
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T13:44:44.511886733Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=7 duration=7.718417ms size=0 referer= handler=/api/live/ws
logger=cleanup t=2022-12-21T13:49:13.942692847Z level=info msg="Completed cleanup jobs" duration=7.531657ms
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T13:50:39.82355953Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=68 duration=68.788761ms size=0 referer= handler=/api/live/ws
logger=cleanup t=2022-12-21T13:59:13.944085882Z level=info msg="Completed cleanup jobs" duration=9.358654ms
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T14:00:01.453973516Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=7 duration=7.921014ms size=0 referer= handler=/api/live/ws
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T14:00:01.469291196Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=1 duration=1.12793ms size=0 referer= handler=/api/live/ws
logger=context userId=1 orgId=1 uname=admin t=2022-12-21T14:05:40.089038325Z level=info msg="Request Completed" method=GET path=/api/live/ws status=-1 remote_addr=172.22.111.150 time_ms=7 duration=7.419608ms size=0 referer= handler=/api/live/ws
logger=cleanup t=2022-12-21T14:09:14.004234054Z level=info msg="Completed cleanup jobs" duration=68.797328ms

I think the problem relates to permission on plugin but I am not sure .

Hi @babsdn ,

I found this on the CheckMK community page so yes permission could be an issue:

I looked at the logs you provided but it does not show any info regarding CheckMK so I would suggest asking in their community as I am sure there is an answer to this.

Thanks. But as I am running grafana as container I don’t have grafana user how can set grafana user ?

I again suggest asking CheckMK official support or on their community forum. I cannot find documentation on their page which explains as how to integrate Grafana or other applications with Docker.

Thanks but according to

we need to change permission on checkmk plugin folder in grafana and this is not relate to checkmk forum because I want change owner in grafana container.

Are you an experienced docker container user?

You can try to use the docker exec command to go inside the container where this permission.

Here is a similar case as a reference on how to use it.

According to follow doc I find out uid is 472 so I used this one :

https://hub.docker.com/r/grafana/grafana

chown -R 472:472 tribe-29-checkmk-datasource

Is that correct ? Does it mean grafana:grafana owner on tribe-29-checkmk-datasource

Hi,
I was having the same problem. Check that the grafana user created in checkMK has administrator rights.

1 Like

Thanks .The issue has solved .

Heloo! I am new here… some can tell if there is a dashboard for checkmk in grafana? a template that a i import?
I have been looking but with no success!´
tks!