Mikesch-mp / icingaweb2-module-grafana

Grafana module for Icinga Web 2 (supports InfluxDB & Graphite)
https://icinga.com/community/
GNU General Public License v2.0
241 stars 94 forks source link

GRAFANA-ICINGA Graph is not loading #262

Closed gauravsuryawanshi0806 closed 2 years ago

gauravsuryawanshi0806 commented 3 years ago

Hi, I have configured ICINGA with Grafana module with influx db. All configuration is done. in Grafana Web GUI i am able to see the graph but in ICINGA web GUI graph is not loading,can you please help the same. GRAFANA Screenshot : image ICINGA2 screenshot: image Error : http’s server IP address could not be found.

bryanalfarom commented 3 years ago

Hi I had the same problem, my config in icinga, i set grafana access as iframe, and get the same error.

image

I fixed adding the next line in apache config

#################################### Header set X-Frame-Options: "SAMEORIGIN" ####################################

image

i use centos and i added on this file /etc/httpd/conf/httpd.conf on debian/ubuntu i think is /etc/apache2/conf-enabled/security.conf (i added at the end, before IncludeOptional line)

image

Maybe this link help you about options has X-Frame https://developer.mozilla.org/es/docs/Web/HTTP/Headers/X-Frame-Options

I hope this help you

Mikesch-mp commented 2 years ago

Check your Grafana options, you have to allow it now. see https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#allow_embedding