markusr
(Markus)
April 23, 2024, 8:50am
1
Hi
I have been using Icinga on an old Debian host. Now I am about to migrate to the Docker version. What is not working are the dashboard widgets. All widgets are duplicated. Example: The following dasboard.ini
leads to 2x “Groups”.
[Current Incidents]
title = "Current Incidents"
[Current Incidents.Service Problems]
title = "Service Problems"
disabled = "1"
[Current Incidents.Recently Recovered Services]
title = "Recently Recovered Services"
disabled = "1"
[Current Incidents.Host Problems]
title = "Host Problems"
disabled = "1"
[Current Incidents.3_Servicegroups]
url = "icingadb/servicegroups?servicegroup.name_ci!=daily-business&sort=services_severity"
title = "Groups"
What I don’t understand is the “why”. Why is the “Groups” widget displayed twice? The same with other widgets. As soon as I add one, it is then visible twice. If I delete the dasboard.ini
I see three presumably predefined widgets, which are not duplicated. Therefore I assume that I am doing something wrong. Maybe someone has a hint?
Image Version:
icinga/icinga2:2.14.2
icinga/icingadb:1.1.1
icinga/icingaweb2:2.12.1
Loaded Modules according to System → About:
director 1.11.1
icingadb 1.1.1
incubator 0.22.0
Web browser: Google Chrome 124.0.6367.62
Server operating system: Debian 12 (Debian 11 inside Docker)
Icinga 2 version used: v2.14.2
PHP version: 7.4.33
markusr
(Markus)
May 31, 2024, 2:22pm
2
I just found a GitHub issue on the topic and left a way to reproduce it there.
opened 12:57PM - 27 Mar 24 UTC
needs-feedback
## Describe the bug
When adding a dashlet to the existing and preconfigured das… hboards "Current Incidents" and "Overdue", the dashlets are added twice. Also, I can't delete any dashlets from those two dashboards. Modifying the dashlets works fine. Modifying one dashlet also modifies the twin.
Adding dashlets to newly configured dashboards adds them only once, and dashlets are easily deleted. I already removed all dashlets that still worked through the obsolete monitoring module and not the IcingaDB.
## To Reproduce
1. Create any sort of query in Icingaweb, e.g. for Host Problems.
2. Add the query as dashlet to the aforementioned dashboards.
3. Also, try to delete any sort of dashlet from those dashboards
I can't reproduce the issue with my colleague's dashboards or in the testing environment.
## Expected behavior
Adding a dashlet should only add it once, and they should be deletable.
## Screenshots
Screenshot of Dashboard Settings:
![grafik](https://github.com/Icinga/icingaweb2/assets/84782250/3c582dda-3270-4ecf-a769-6d0fb2564f88)
The doubling is not apparent in the /etc/icingaweb2/dashboards/[username]/dashboard.ini:
[Current Incidents]
title = "Current Incidents"
[Current Incidents.Service Problems]
url = "icingadb/[...]
title = "Service Problems"
[Current Incidents.Host Problems]
url = "icingadb/[...]
title = "Host Problems"
[Current Incidents.Recently recovered Hosts]
url = "icingadb/[...]
title = "Recently recovered Hosts"
[Current Incidents.Recently recovered Services]
url = "icingadb/[...]
title = "Recently recovered Services"
[Current Incidents.Late Host Check Results]
url = "icingadb/[...]
title = "Late Host Check Results"
[Current Incidents.Test]
url = "icingadb/[...]
title = "Test"
However, the dashboard.ini generally doesn't seem to contain all configuration items for the dashlets in the default dashboards.
Overdue dashboard:
![grafik](https://github.com/Icinga/icingaweb2/assets/84782250/bb60541f-2f4e-425e-9380-9d93016902f1)
![grafik](https://github.com/Icinga/icingaweb2/assets/84782250/418f8c1e-c796-4186-8e6a-bc801daccdb0)
In dashboard.ini:
[Overdue]
title = "Overdue"
[Overdue.Late Host Check Results]
url = "icingadb/[...]
title = "Late Host Check Results"
[Overdue.Late Service Check Results]
url = "icingadb/[...]
title = "Late Service Check Results"
## Your Environment
Include as many relevant details about the environment you experienced the problem in
* Icinga Web 2 version and modules (System - About):
![grafik](https://github.com/Icinga/icingaweb2/assets/84782250/f09be9d8-b582-4a63-b019-5338a455f6c3)
* Web browser used: Firefox, Edge
* Icinga 2 version used (`icinga2 --version`): r2.14.2-1
* PHP version used (`php --version`): PHP 8.0.30
* Server operating system and version: SUSE Linux Enterprise Server 15 SP5
## Additional context
Add any other context about the problem here.
markusr
(Markus)
June 12, 2024, 7:40am
3
My mistake. I have found the problem.
opened 12:57PM - 27 Mar 24 UTC
needs-feedback
## Describe the bug
When adding a dashlet to the existing and preconfigured das… hboards "Current Incidents" and "Overdue", the dashlets are added twice. Also, I can't delete any dashlets from those two dashboards. Modifying the dashlets works fine. Modifying one dashlet also modifies the twin.
Adding dashlets to newly configured dashboards adds them only once, and dashlets are easily deleted. I already removed all dashlets that still worked through the obsolete monitoring module and not the IcingaDB.
## To Reproduce
1. Create any sort of query in Icingaweb, e.g. for Host Problems.
2. Add the query as dashlet to the aforementioned dashboards.
3. Also, try to delete any sort of dashlet from those dashboards
I can't reproduce the issue with my colleague's dashboards or in the testing environment.
## Expected behavior
Adding a dashlet should only add it once, and they should be deletable.
## Screenshots
Screenshot of Dashboard Settings:
![grafik](https://github.com/Icinga/icingaweb2/assets/84782250/3c582dda-3270-4ecf-a769-6d0fb2564f88)
The doubling is not apparent in the /etc/icingaweb2/dashboards/[username]/dashboard.ini:
[Current Incidents]
title = "Current Incidents"
[Current Incidents.Service Problems]
url = "icingadb/[...]
title = "Service Problems"
[Current Incidents.Host Problems]
url = "icingadb/[...]
title = "Host Problems"
[Current Incidents.Recently recovered Hosts]
url = "icingadb/[...]
title = "Recently recovered Hosts"
[Current Incidents.Recently recovered Services]
url = "icingadb/[...]
title = "Recently recovered Services"
[Current Incidents.Late Host Check Results]
url = "icingadb/[...]
title = "Late Host Check Results"
[Current Incidents.Test]
url = "icingadb/[...]
title = "Test"
However, the dashboard.ini generally doesn't seem to contain all configuration items for the dashlets in the default dashboards.
Overdue dashboard:
![grafik](https://github.com/Icinga/icingaweb2/assets/84782250/bb60541f-2f4e-425e-9380-9d93016902f1)
![grafik](https://github.com/Icinga/icingaweb2/assets/84782250/418f8c1e-c796-4186-8e6a-bc801daccdb0)
In dashboard.ini:
[Overdue]
title = "Overdue"
[Overdue.Late Host Check Results]
url = "icingadb/[...]
title = "Late Host Check Results"
[Overdue.Late Service Check Results]
url = "icingadb/[...]
title = "Late Service Check Results"
## Your Environment
Include as many relevant details about the environment you experienced the problem in
* Icinga Web 2 version and modules (System - About):
![grafik](https://github.com/Icinga/icingaweb2/assets/84782250/f09be9d8-b582-4a63-b019-5338a455f6c3)
* Web browser used: Firefox, Edge
* Icinga 2 version used (`icinga2 --version`): r2.14.2-1
* PHP version used (`php --version`): PHP 8.0.30
* Server operating system and version: SUSE Linux Enterprise Server 15 SP5
## Additional context
Add any other context about the problem here.