# Graphs are not displayed

**URL:** <https://community.icinga.com/t/graphs-are-not-displayed/14245>\
**Category:** Icinga DB Web\
**Created:** [October 29, 2024, 5:57pm UTC](https://community.icinga.com/t/graphs-are-not-displayed/14245 "2024-10-29T17:57:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdiR](https://community.icinga.com/user_avatar/community.icinga.com/adir/32/8133_2.png) [@AdiR](https://community.icinga.com/u/AdiR)\
**Post date:** [October 29, 2024, 5:57pm UTC](https://community.icinga.com/t/graphs-are-not-displayed/14245/1 "2024-10-29T17:57:15Z")

</div>

Hi.  
I have migrated icinga master to a new server, changed from influxdb to influxdb2 and from ido-mysql to icingadb.  
Every module is configured and works.  
Unfortunately, the graphs are not displayed. But, if I click the graph location (the url to grafana is enabled), the page is opened but the query is not executed.  
Any idea if this might be an issue to icinga or grafana module? Or is just grafana itself?

- Icinga Web 2 version  
2.11.3

- Used modules and their versions (System - About)  
|doc ||2.11.3|  
|grafana ||2.0.3|  
|icingadb ||1.1.3|  
|icingalegacytheme ||1.0.0|  
|incubator ||0.22.0|  
|map ||2.0.0|  
|migrate ||2.11.3|  
|setup ||2.11.3|  
|vspheredb ||1.7.1|  
|x509 ||1.3.2|

- Web browser used  
chrome, firefox

- Icinga 2 version used (`icinga2 --version`)  
r2.13.7-1

- PHP version used (`php --version`)  
v8.0.30

- Server operating system and version  
AlmaLinux 9.4

---

<div class="post-metadata">

**Author:** ![moreamazingnick](https://community.icinga.com/user_avatar/community.icinga.com/moreamazingnick/32/7725_2.png) [@moreamazingnick](https://community.icinga.com/u/moreamazingnick)\
**Post date:** [October 30, 2024, 6:47am UTC](https://community.icinga.com/t/graphs-are-not-displayed/14245/2 "2024-10-30T06:47:24Z")

</div>

Check if the graphs are available directly through grafana.  
Keep in mind that for migration from influxdb1 to influxdb2 of your graphs the datasource is not the same anymore.

also there is work to use v1 api in your icinga2 bucket if you want to use the old influxql dashboards:

> **[Use Grafana with InfluxDB OSS | InfluxDB OSS v2 Documentation](https://docs.influxdata.com/influxdb/v2/tools/grafana/?t=InfluxQL)**
>
> Use Grafana to visualize data from your InfluxDB instance.

or you migrate your dashboard to flux:

> [@Icingaweb2 & grafana & influxdb working dashboard](https://community.icinga.com/t/icingaweb2-grafana-influxdb-working-dashboard/13281/2):
>
> I started with a default dashboard here: [https://github.com/RincewindsHat/icinga2-influxdb2-flux-dashboards](https://github.com/RincewindsHat/icinga2-influxdb2-flux-dashboards) Maybe that helps.

---

<div class="post-metadata">

**Author:** ![AdiR](https://community.icinga.com/user_avatar/community.icinga.com/adir/32/8133_2.png) [@AdiR](https://community.icinga.com/u/AdiR)\
**Post date:** [October 30, 2024, 8:22am UTC](https://community.icinga.com/t/graphs-are-not-displayed/14245/3 "2024-10-30T08:22:43Z")

</div>

Hi. Data from influx1 is migrated to influx2 and can see the graphs directly in grafana. I’ve also tried to set a new datasource with flux, graphs are displayed in gfafana but same story in icinga.

also, a strange think is the hostalive service which has a separate graph set in icinga, and it’s showing on the host monitoring page

---

<div class="post-metadata">

**Author:** ![AdiR](https://community.icinga.com/user_avatar/community.icinga.com/adir/32/8133_2.png) [@AdiR](https://community.icinga.com/u/AdiR)\
**Post date:** [October 31, 2024, 12:13pm UTC](https://community.icinga.com/t/graphs-are-not-displayed/14245/4 "2024-10-31T12:13:10Z")

</div>

Downgrading grafana to 11.2.3 solved the issue.  
seems like grafana 11.3 have some changes that create this issue.

from what I found, it’s related to how the request is made

---

<div class="post-metadata">

**Author:** ![lrk](https://community.icinga.com/letter_avatar_proxy/v4/letter/l/65b543/32.png) [@lrk](https://community.icinga.com/u/lrk)\
**Post date:** [November 15, 2024, 7:31am UTC](https://community.icinga.com/t/graphs-are-not-displayed/14245/5 "2024-11-15T07:31:05Z")

</div>

You can use grafana v11.3.0 if you change the variables (hostname,service) from constant to custom:  
 ![image](https://community.icinga.com/uploads/default/original/2X/4/4a057d4b20581f7a84801982da6e4baf22c1d0bc.png)

> <https://github.com/Mikesch-mp/icingaweb2-module-grafana/issues/344>
>
> \## What happened?
> 
> Like described in this issue for grafana Variables are not …passed to the dashboards.
> https://github.com/grafana/grafana/issues/95466
> 
> \## Possible Solution
> Change CONSTANT Variables to CUSTOM Variables.
> 
> \## Steps to Reproduce (for bugs)
> 
> icingaweb + icingadb-web
> grafana module with grafana iframe integration
> grafana 11.3.0
> 
> \## Your Environment
> Grafana 11.3.0
> 
> Icinga Web 2 Version 2.12.1
> PHP Version 8.1.2-1ubuntu2.19
>  
> Loaded Libraries
> icinga/icinga-php-library 0.14.1
> icinga/icinga-php-thirdparty 0.12.1
>  
> Loaded Modules
> grafana 2.0.3 Configure
> icingadb 1.1.3 Configure
> incubator 0.22.0 Configure

> <https://github.com/grafana/grafana/issues/95466>
>
> \### What happened?
> 
> After upgrade to 11.3.0 \_Flux\_ queries in dashboards stopped… working when they were using variables.
> 
> \### What did you expect to happen?
> 
> Dashboards queries work as before.
> 
> \### Did this work before?
> 
> 11.2.2 with security fix and after the downgrade to 11.2.3 data is shown (again)
> 
> \### How do we reproduce it?
> 
> 1. Have a dashboard with a variable of type constant and a Flux query
> !\[Image\](https://github.com/user-attachments/assets/a7a92541-5750-4220-abe4-fc78a6cbf4a8)
> 
> !\[Image\](https://github.com/user-attachments/assets/bbc32a8a-d360-463e-a220-5041c29c92f2)
> 
> 
> 2. This yields "No data" in the dashboard when adding the required variables to the URL
> 3. Changing the query to fixed values and it works (tested using "Explore" option of the datasource)
> !\[Image\](https://github.com/user-attachments/assets/acc4b209-1fdf-459c-81c3-4e38a4a87697)
> 
> 
> 
> \### Is the bug inside a dashboard panel?
> 
> \_No response\_
> 
> \### Environment (with versions)?
> 
> Grafana: 11.3.0
> OS: Ubuntu 22.04.5
> Browser: Chrome
> 
> 
> \### Grafana platform?
> 
> None
> 
> \### Datasource(s)?
> 
> InfluxDB v2.7.10

---

<div class="post-metadata">

**Author:** ![AdiR](https://community.icinga.com/user_avatar/community.icinga.com/adir/32/8133_2.png) [@AdiR](https://community.icinga.com/u/AdiR)\
**Post date:** [November 18, 2024, 8:57am UTC](https://community.icinga.com/t/graphs-are-not-displayed/14245/6 "2024-11-18T08:57:02Z")

</div>

Hi and thanks for the info.  
Unfortunately, my variables are query type and the data source is using influxql.  
I’ve tried to set them to custom but is not working

LE: I’m so dumb, didn’t saved the dashboard after the changes… I confirm that changing to custom variable, from query, in my case, it fixes the issue
