Griesbacher / histou

Adds templates to Grafana in combination with nagflux
GNU General Public License v2.0
35 stars 16 forks source link

Problem integration grafana error 200 doesn´t show graphical data #45

Closed iam333 closed 2 years ago

iam333 commented 2 years ago

Hi, thanks in advance!

I have Nagios (core 4.4.6), Grafana(v8.2.5) Influxdb and Histou (0.4.3). Histou show all data in json correctly, but whith the grafana integration (histou.js) shows an error in grafana dashboard:

{
  "gridPos": {
    "x": 0,
    "y": 0,
    "w": 24,
    "h": 8
  },
  "type": "text",
  "title": "Error Message below",
  "fill": 1,
  "content": "# HTTP code: 200\n# Message: load\n# Url: http://nagiosserver/histou/index.php?host=server1.es&service=&height=&legend=true&annotations=false\n# Probably the output is not valid json, because the returncode is 200!",
  "options": {
    "mode": "markdown",
    "content": "# Title\n\n  For markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)\n           "
  },
  "id": 1,
  "pluginVersion": "8.2.5",
  "datasource": null
}

I can´t resolve this! is there any change using php7 in json data procces?

Thanks

dan-m-joh commented 2 years ago

I am not sure if this helps, but try to downgrade grafana to v7.x. We had some issues (can't remember exactly what) when we tried grafana v8.x with nagflux/histou. And by the way, OMD is also on grafana v7.x.

iam333 commented 2 years ago

Solved! The problem was in the http and https configuration with the different software involved.

It works with grafana 8.X version!

thanks!

lausser commented 2 years ago

Did you use a very recent Grafana 8.x? Because there was a pull-request in the last days, which fixed the bug. (The bug which was the reason, why OMD still uses Grafana 7)