CheckMK Raw with Grafana - Combined Graph: Graph field not selectable

Hello everybody,

just working on Grafana and trying to set up a combined graph, but I am not able to select a graph after filling out everything else.

Is this due to limitations by using RAW edition?

BR
Bastian

if you want to create the combined graph in Grafana you have only the restrictions of Grafana otherwise
in CMK the combined graph are just available in the enterprise Edition because the CEE is working with an own graphic interface

@BH2005 are you sure? Since 2.0 Grafana is also available to RAW.

as I had writen

then you have just the limitations of Grafana.
I have also the Connector for Grafana in Service (just for testing) and it work as expected.

Description is (Chapter 4: “Creating complex Graphs”)

But when clicking on “Graph” it stays empty.

how does the Panel JSON from Grafana looks ?

{
  "type": "graph",
  "title": "Panel Title",
  "gridPos": {
    "x": 0,
    "y": 0,
    "w": 12,
    "h": 8
  },
  "id": 23763571993,
  "fieldConfig": {
    "defaults": {},
    "overrides": []
  },
  "pluginVersion": "7.5.7",
  "targets": [
    {
      "refId": "A",
      "site": "",
      "host": "",
      "hostregex": "",
      "service": "",
      "serviceregex": "CPU utilization",
      "mode": "combined",
      "metric": "",
      "graph": "",
      "presentation": "average",
      "combinedgraph": "",
      "format": "$title",
      "filter0group": "",
      "filter1group": "",
      "filter2group": "",
      "filter0op": "is",
      "filter1op": "is",
      "filter2op": "is",
      "filter0value": "",
      "filter1value": "",
      "filter2value": "",
      "usehostregex": false
    }
  ],
  "options": {
    "alertThreshold": true
  },
  "renderer": "flot",
  "yaxes": [
    {
      "label": null,
      "show": true,
      "logBase": 1,
      "min": null,
      "max": null,
      "format": "short"
    },
    {
      "label": null,
      "show": true,
      "logBase": 1,
      "min": null,
      "max": null,
      "format": "short"
    }
  ],
  "xaxis": {
    "show": true,
    "mode": "time",
    "name": null,
    "values": [],
    "buckets": null
  },
  "yaxis": {
    "align": false,
    "alignLevel": null
  },
  "lines": true,
  "fill": 1,
  "fillGradient": 0,
  "linewidth": 1,
  "dashes": false,
  "hiddenSeries": false,
  "dashLength": 10,
  "spaceLength": 10,
  "points": false,
  "pointradius": 2,
  "bars": false,
  "stack": false,
  "percentage": false,
  "legend": {
    "show": true,
    "values": false,
    "min": false,
    "max": false,
    "current": false,
    "total": false,
    "avg": false
  },
  "nullPointMode": "null",
  "steppedLine": false,
  "tooltip": {
    "value_type": "individual",
    "shared": true,
    "sort": 0
  },
  "aliasColors": {},
  "seriesOverrides": [],
  "thresholds": [],
  "timeRegions": [],
  "datasource": null
}

I thing whithout an “hostregex”: “” the services are not been found.

this is an graph from my enviroment:

Panel JSON

{
“datasource”: null,
“type”: “graph”,
“title”: “Panel Title”,
“gridPos”: {
“x”: 0,
“y”: 0,
“w”: 12,
“h”: 8
},
“id”: 11,
“targets”: [
{
“refId”: “A”,
“site”: “”,
“host”: “”,
“hostregex”: “^rt-de”,
“service”: “”,
“serviceregex”: “^Up”,
“mode”: “combined”,
“metric”: “”,
“graph”: “”,
“presentation”: “lines”,
“combinedgraph”: “METRIC_uptime”,
“format”: “$title”,
“filter0group”: “”,
“filter1group”: “”,
“filter2group”: “”,
“filter0op”: “is”,
“filter1op”: “is”,
“filter2op”: “is”,
“filter0value”: “”,
“filter1value”: “”,
“filter2value”: “”,
“usehostregex”: true
}
],
“options”: {
“dataLinks”: []
},
“renderer”: “flot”,
“yaxes”: [
{
“label”: null,
“show”: true,
“logBase”: 1,
“min”: null,
“max”: null,
“format”: “short”
},
{
“label”: null,
“show”: true,
“logBase”: 1,
“min”: null,
“max”: null,
“format”: “short”
}
],
“xaxis”: {
“show”: true,
“mode”: “time”,
“name”: null,
“values”: [],
“buckets”: null
},
“yaxis”: {
“align”: false,
“alignLevel”: null
},
“lines”: true,
“fill”: 1,
“fillGradient”: 0,
“linewidth”: 1,
“dashes”: false,
“dashLength”: 10,
“spaceLength”: 10,
“points”: false,
“pointradius”: 2,
“bars”: false,
“stack”: false,
“percentage”: false,
“legend”: {
“show”: true,
“values”: false,
“min”: false,
“max”: false,
“current”: false,
“total”: false,
“avg”: false
},
“nullPointMode”: “null”,
“steppedLine”: false,
“tooltip”: {
“value_type”: “individual”,
“shared”: true,
“sort”: 0
},
“timeFrom”: null,
“timeShift”: null,
“aliasColors”: {},
“seriesOverrides”: [],
“thresholds”: [],
“timeRegions”: []
}

after the section “targets”:


Host is optional. But for debugging I tried to specify a regex, too. Without better results. The Graph dropdown list stays empty.

try as Service Regex
^CPU
and the by the graph should be a metric in the drop-down
the Limitation is up to 100 Services so a Host regex is an good Idea :wink:

Sure… But still no luck with the Graph dropdown.

Any other comments? First question was: Is this a restriction with RAW (2.0)?

if the single Metric`s can be displayed, then the combination also has to work.
Because the combination will be done by Grafana and not from CMK

Single metric is working fine.

the plugin Version is =>1.1.0

then it has to work
IMHO the plugin translate only LIVESTATUS for Grafana
perhaps anybody has an other Idea but I am out of Idea`s for the moment

Würde gerne das Thema nochmal nach oben pushen, nachdem es hierzu noch keine befriedigende Antwort gab und ich immer noch an einer Lösung interessiert bin.

Would like to push up this topic again, after no satisfying answer so far and still interested in any solution for it.

I’ve got the exact same issue/question and am using CheckMK 2.0.0p6 raw. It seems like the “Graph” field won’t ever populate, which makes it difficult to know exactly what prevents it from finding the information needed.

When looking at the query inspector, the queries don’t seem to return anything.

I’ve tried creating a docker image for CheckMK Free, which is the free enterprise edition, and it seemed to work flawlessly with that one.

Unless someone knows about another reason it might not be working, I’m going to assume it has to do with the raw edition not supporting it. Would be nice if I was wrong though.

1 Like

This is so unsatisfying, as all other competitors are supporting Grafana as First Class citizen in free or enterprise versions.

I got the same issue here. In fact, inputting the exact same values as the doc suggests (with a working host) doesn’t work: Integrating Checkmk in Grafana

Toying with the JSON editor when trying to use the combined mode I get:

Checkmk exception: Invalid graph specification type "combined" given Traceback (most recent call last): File "/omd/sites/home/lib/python3/cmk/gui/webapi.py", line 116, in page_api resp = _execute_action(api_call, request_object) File "/omd/sites/home/lib/python3/cmk/gui/webapi.py", line 207, in _execute_action return _execute_action_no_lock(api_call, request_object) File "/omd/sites/home/lib/python3/cmk/gui/webapi.py", line 221, in _execute_action_no_lock "result": api_call["handler"](request_object), File "/omd/sites/home/lib/python3/cmk/gui/plugins/webapi/graphs.py", line 35, in _get_graph return graph_spec_from_request(request) File "/omd/sites/home/lib/python3/cmk/gui/plugins/metrics/graph_images.py", line 235, in graph_spec_from_request graph_data_range, graph_recipes = graph_recipes_for_api_request(api_request) File "/omd/sites/home/lib/python3/cmk/gui/plugins/metrics/graph_images.py", line 197, in graph_recipes_for_api_request graph_identification_types.verify(graph_identification[0]) File "/omd/sites/home/lib/python3/cmk/gui/plugins/metrics/identification.py", line 49, in verify raise MKUserError(None, _('Invalid graph specification type "%s" given') % type_ident) cmk.gui.exceptions.MKUserError: Invalid graph specification type "combined" given

Not sure if that could help.