# No graphite charts shown in icingaweb2

**URL:** <https://community.icinga.com/t/no-graphite-charts-shown-in-icingaweb2/11671>\
**Category:** Icinga Web Modules\
**Tags:** graphite\
**Created:** [March 23, 2023, 7:34am UTC](https://community.icinga.com/t/no-graphite-charts-shown-in-icingaweb2/11671 "2023-03-23T07:34:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcoH](https://community.icinga.com/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@MarcoH](https://community.icinga.com/u/MarcoH)\
**Post date:** [March 23, 2023, 7:34am UTC](https://community.icinga.com/t/no-graphite-charts-shown-in-icingaweb2/11671/1 "2023-03-23T07:34:21Z")

</div>

I am currently in the evaluation phase of icinga2, icingaweb2, director, graphite, … .  
Problem:  
I can’t see charts in Icingaweb2. Only the message “Could not resolve host: icingaweb2” is displayed.  
 ![grafik](https://community.icinga.com/uploads/default/original/2X/b/ba72bfc9727c9d1b331ab370719d0bf3984e70f0.png)

**Situation:**

**Modules / Version**

- Icinga2 r2.13.7-1
- Icinga Web 2 Version 2.11.4
- director 1.10.2
- doc 2.11.4
- graphite 1.2.2
- incubator 0.20.0
- monitoring 2.11.4
- PHP 7.4.33
- Firefox 111.0
- System information:
- Platform: Debian GNU/Linux
- Platform version: 11 (bullseye)
- Kernel: Linux
- Kernel version: 5.10.0-21-amd64
- Architecture: x86\_64

Icinga2, icingaweb2 and host work and collect data and send it to Graphite. I verified this via Graphite Web. I can also view the graphite data in Grafana. So I would say everything works except for the visualization of graphite diagrams in icingaweb2.

I hope someone can give me a tip to solve my problem.

Thank you

---

<div class="post-metadata">

**Author:** ![homerjay](https://community.icinga.com/user_avatar/community.icinga.com/homerjay/32/377_2.png) [@homerjay](https://community.icinga.com/u/homerjay)\
**Post date:** [March 23, 2023, 2:38pm UTC](https://community.icinga.com/t/no-graphite-charts-shown-in-icingaweb2/11671/2 "2023-03-23T14:38:26Z")

</div>

Hi.

Just a guess:  
Can **icingaweb2** be resolved from the icingaweb host?  
“Graphite Web URL” seems to point to this graphite-host.

Greetings

---

<div class="post-metadata">

**Author:** ![MarcoH](https://community.icinga.com/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@MarcoH](https://community.icinga.com/u/MarcoH)\
**Post date:** [March 23, 2023, 3:43pm UTC](https://community.icinga.com/t/no-graphite-charts-shown-in-icingaweb2/11671/3 "2023-03-23T15:43:42Z")

</div>

Thanks for your reply.  
Now i am one step further.

I am still not seeing charts, but now i can print out debug information:

 ![grafik](https://community.icinga.com/uploads/default/original/2X/5/51727e070d2f1d9899f0df43b2d494d4911966e2.png)

I have copy & paste the url in Firefox:

```auto
(http://debiantest.le.local/graphite/metrics/expand?query=%E2%80%9Cicinga2.debiantest.host.hostalive%E2%80%9D.perfdata.rta.value)

```

and no results is cumming back.  
 ![grafik](https://community.icinga.com/uploads/default/original/2X/3/39a73f3921d9d6ef5dc24ab7f1c0e05ca08c1f50.png)

If i remove the double quotes around _debiantest.host.hostalive_ then i receive data but no values.  
 ![grafik](https://community.icinga.com/uploads/default/original/2X/c/c81debfa873e93370ac147155e6f1dfed281b3fc.png)

I think it is a configuration problem at graphite/templates. I am using the default / original templates which were delivered by installation.

Sorry for my bad english

---

<div class="post-metadata">

**Author:** ![MarcoH](https://community.icinga.com/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@MarcoH](https://community.icinga.com/u/MarcoH)\
**Post date:** [March 24, 2023, 9:35am UTC](https://community.icinga.com/t/no-graphite-charts-shown-in-icingaweb2/11671/4 "2023-03-24T09:35:50Z")

</div>

I could solve it by myself:  
It was copy&paste mistake in the file:

```auto
/etc/icingaweb2/modules/graphite/config.ini

```

I have double double quoted the values of “graphite\_writer\_host\_name\_template” and “graphite\_writer\_service\_name\_template”

INCORRECT:

```auto
graphite_writer_host_name_template = ""icinga2.$host.name$.host.$host.check_command$""
graphite_writer_service_name_template = ""icinga2.$host.name$.services.$service.name$.$service.check_command$""

```

CORRECT:

```auto
graphite_writer_host_name_template = "icinga2.$host.name$.host.$host.check_command$"
graphite_writer_service_name_template = "icinga2.$host.name$.services.$service.name$.$service.check_command$"

```

Thanks for help
