Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashlets twice in dashboard & not deletable #5203

Open
Nayakum opened this issue Mar 27, 2024 · 1 comment
Open

Dashlets twice in dashboard & not deletable #5203

Nayakum opened this issue Mar 27, 2024 · 1 comment
Labels
needs-feedback We'll only proceed once we hear from you again

Comments

@Nayakum
Copy link

Nayakum commented Mar 27, 2024

Describe the bug

When adding a dashlet to the existing and preconfigured dashboards "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

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
grafik

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

  • 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.

@nilmerg
Copy link
Member

nilmerg commented Mar 28, 2024

Hi,

I think you've guessed it already: I cannot reproduce this. I get no duplicates and removal as well as editing works fine.

I can't reproduce the issue with my colleague's dashboards or in the testing environment.
The doubling is not apparent in the /etc/icingaweb2/dashboards/[username]/dashboard.ini:

If you can reliably reproduce this on your system, try a different browser, log in as a different user, change the locale. Or identify any differences between you and your colleagues. (Maybe they don't have access to a particular module)

However, the dashboard.ini generally doesn't seem to contain all configuration items for the dashlets in the default dashboards.

That's normal. Only once a default item is adjusted, it appears in the INI file.

@nilmerg nilmerg added the needs-feedback We'll only proceed once we hear from you again label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-feedback We'll only proceed once we hear from you again
Projects
None yet
Development

No branches or pull requests

2 participants