Followed different howto’s but mostly this one (google translate): LINK github
It seems that alot of documentation is getting out of date but think most of the above link is still fine and my Grafana is working good and icinga2 is working to. Just the visual graphs dont show.
I will definately try that to! Here is comes: ‘but…’
…because the (single) user (icinga2 admin) can just click the link in icinga2 and see the grafana graph without authorisation I thought the grafana access part would be fine, dont you think so?
The docs say if you use direct mode, the user have to be logged in or you allow anonymous access.
The difference is that in direct the browser of the user fetches the image, in proxy mode the webserver fetches the image and serve it.
While looking for icinga2 grafana api examples, I found an reference to grafana.ini and “allow_embedding = true” . That seemed to do the trick but now you made me curious and I want to find out how to get this api access working
For now I created a API key in grafana and changed the configuration in icinga2 to indirect proxy and set the api key in there. Still investigating, but for now I get an internal server error 500 in icinga2.
It’s showing that I’m missing something but I’m lost…hope you have another hint.
Tried another thing that was used here and it’s called Modify Header info chrome extention. Filling in the api key like describes shows me that I can see the graphs in grafana using the api key… So in my eye’s there must be something wrong with Icinga not using the authentication header api key to retreive the graph ?!
What OS are you using and how did you install Grafana? Maybe a look into the syslog will give more details.
I think the API is not the problem, more that the renderer of Grafana is missing something.
I think there are the fonts missing, can you check the syslog for any messages from grafana while view a host/service object and also watch syslog during startup of grafana. The message you posted shows that grafana has problems to load something during renderer run.
Tried multiple bin files but all give the same errors:
root@icinga:/home/pi# ./phantomjs --version
./phantomjs: error while loading shared libraries: libssl.so.1.0.2: cannot open shared object file: No such file or directory